diff options
author | Mark Longair <mhl@pobox.com> | 2013-05-17 11:48:14 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-05-17 11:48:14 +0100 |
commit | 46e7df935929793fafb6069fbd272f5a35752e89 (patch) | |
tree | c5fd6bb8de681655bf68612088185c6585f173eb /lib/mail_handler/backends/mail_extensions.rb | |
parent | ac2d5ed7f249fe5bef5601b4a60141fa79095558 (diff) |
Cope with emails with a missing final MIME boundary
The Mail gem deals with multipart messages that look as if
they should have 1 part but are missing the final MIME boundary,
by make the parts list empty and setting part.body to the
text of the email. Rather than throwing an exception in this
case, we just pretend that part is text/plain and return it, so
that the page doesn't error and we still have a chance of some
useful text being displayed.
Note that we haven't investigated yet the case of emails that
have more than one start boundary, but no final boundary.
Fixes #921
Diffstat (limited to 'lib/mail_handler/backends/mail_extensions.rb')
0 files changed, 0 insertions, 0 deletions