diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-04-25 09:14:40 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-04-25 09:14:40 +0100 |
commit | 7e17b5e04307c5954ced724ac624dafabff3eb3b (patch) | |
tree | ab68fec65d505bfcd7a25ddc18f89e14360eec72 /lib | |
parent | ed6e7d4be313cc92c656ded3bc94e9d8547cbe29 (diff) | |
parent | cc846cb49d8e99e0ca183cef8c73df8b8af6b39b (diff) |
Merge branch 'hotfix/0.17.0.1' into wdtk
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mail_handler/backends/mail_extensions.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mail_handler/backends/mail_extensions.rb b/lib/mail_handler/backends/mail_extensions.rb index 87af526bf..a277f540d 100644 --- a/lib/mail_handler/backends/mail_extensions.rb +++ b/lib/mail_handler/backends/mail_extensions.rb @@ -9,6 +9,12 @@ module Mail attr_accessor :count_first_uudecode_count end + class Part < Message + def inline? + header[:content_disposition].disposition_type == 'inline' if header[:content_disposition] rescue false + end + end + # A patched version of the parameter hash that handles nil values without throwing # an error. class ParameterHash < IndifferentHash |