Subject: Re: [sup-devel] [PATCH] fixed a typo in parse_header

From: William Morgan <[email-masked]>
Date: Thu, 31 Dec 2009 11:45:48 -0800

Reformatted excerpts from Eric Sherman's message of 2009-12-30:
> On the initial sup-sync when trying to use xapian for the first time,
> one of my headers apparently triggered this edge case.

Wow, how did I let THAT get through. Applied to list-post-improvements,
remerged into next. Thanks!
-- 
William <[email-masked]>
_______________________________________________
Sup-devel mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-devel

---

From: Eric Sherman <[email-masked]>
Date: Thu, 31 Dec 2009 01:43:43 -0500

On the initial sup-sync when trying to use xapian for the first time, one 
of my headers apparently triggered this edge case.

---
 lib/sup/message.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup/message.rb b/lib/sup/message.rb
index 9d22508..bb7d4cd 100644
--- a/lib/sup/message.rb
+++ b/lib/sup/message.rb
@@ -117,7 +117,7 @@ class Message
     @list_address = if header["list-post"]
       address = if header["list-post"] =~ /mailto:(.*?)[>\s$]/
         $1
-      elsif list-post =~ /@/
+      elsif header["list-post"] =~ /@/
         header["list-post"] # just try the whole fucking thing
       end
       address && Person.from_address(address)
-- 
1.6.5.7
_______________________________________________
Sup-devel mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-devel