Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Eric Sherman <hyperbolist@gmail.com>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] [PATCH] fixed a typo in parse_header
Date: Thu, 31 Dec 2009 01:43:43 -0500	[thread overview]
Message-ID: <1262241818-sup-6917@changeling.local> (raw)

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
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


             reply	other threads:[~2009-12-31  6:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-31  6:43 Eric Sherman [this message]
2009-12-31 19:45 ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1262241818-sup-6917@changeling.local \
    --to=hyperbolist@gmail.com \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox