]> git.cworth.org Git - sup/commitdiff
fix message id space issue
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 9 Oct 2007 14:03:18 +0000 (14:03 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 9 Oct 2007 14:03:18 +0000 (14:03 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@610 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/message.rb

index b916b3d56ef4179804a4f433d11198a008ed8412..6eb47d8b863a0485fa08efb1f64966415b1af96c 100644 (file)
@@ -58,8 +58,10 @@ class Message
 
     @from = PersonManager.person_for header["from"]
 
-    @id = header["message-id"].gsub(/^\s+|\s+$/, "")
-    unless @id
+    @id = header["message-id"]
+    if @id
+      id.gsub!(/^\s+|\s+$/, "")
+    else
       @id = "sup-faked-" + Digest::MD5.hexdigest(raw_header)
       Redwood::log "faking message-id for message from #@from: #@id"
     end