Excerpts from Marcus Williams's message of Fri Nov 02 03:01:16 -0700 2007:
> ... you may want to remove the @id from the log message - wont this
> always be nil at this point (as it gets assigned by this block)?
Good point. A chance to use my k combinator! Check this out:
--- lib/sup/message.rb (revision 658)
+++ lib/sup/message.rb (working copy)
@@ -62,8 +62,9 @@
if header["message-id"]
sanitize_message_id header["message-id"]
else
- Redwood::log "faking message-id for message from [EMAIL PROTECTED]:
[EMAIL PROTECTED]"
- "sup-faked-" + Digest::MD5.hexdigest(raw_header)
+ returning("sup-faked-" + Digest::MD5.hexdigest(raw_header)) do |id|
+ Redwood::log "faking message-id for message from [EMAIL
PROTECTED]: #{id}"
+ end
end
date = header["date"]
God I love this language.
--
William <[EMAIL PROTECTED]>
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk