redmine/redmine — pull request #17 by ChALkeR (2013-09-06 09:28:55+00:00)
Title: mailer.rb: Fix message-id generation for outgoing emails.

Without this fix, if one configures Redmine to use something like «Redmine » as the outgoing address (which works nicely, exept for the message-id), the message-id is set to invalid string like > becase of the invalid hostname extraction.
This results in Google ignoring the invalid message-id field and replacing it with an autogenerated one. The message then fails DKIM check and goes into the spam folder.

This commit fixes invalid message-id generation, and everything works fine for me now.