mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
DEV: Update mail and use fork (#10639)
Version 2.8 brings some changes to how address fields are handled and this commits updates that and should also include a fix which handles encoded attachment filenames. The fork contains a bugfix to correctly decode mail attachments.
This commit is contained in:
@ -18,7 +18,7 @@ def EmailFabricator(options)
|
||||
email += "Cc: #{options[:cc]}\n" if options[:cc]
|
||||
email += "In-Reply-To: #{options[:in_reply_to]}\n" if options[:in_reply_to]
|
||||
email += "References: #{options[:in_reply_to]}\n" if options[:in_reply_to]
|
||||
email += "Message-ID: #{options[:message_id]}\n" if options[:message_id]
|
||||
email += "Message-ID: <#{options[:message_id]}>\n" if options[:message_id]
|
||||
email += "Subject: #{options[:subject] || "This is a test email subhect"}\n"
|
||||
email += "Mime-Version: 1.0\n"
|
||||
email += "Content-Type: #{options[:content_type] || "text/plain;\n charset=UTF-8"}\n"
|
||||
|
Reference in New Issue
Block a user