commit 468ce1e79a6068c4ed1c0a20b6ae4ac7b361be29
parent fa9eab38db49264865dcb0dab9ae8da45f8c7500
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Tue, 9 Oct 2007 14:03:18 +0000
fix message id space issue
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@610 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -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