diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/configuration.rb | 1 | ||||
-rw-r--r-- | lib/mail_handler/backends/mail_extensions.rb | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/configuration.rb b/lib/configuration.rb index bd705b777..d525bf712 100644 --- a/lib/configuration.rb +++ b/lib/configuration.rb @@ -58,6 +58,7 @@ module AlaveteliConfiguration :RECAPTCHA_PUBLIC_KEY => 'x', :REPLY_LATE_AFTER_DAYS => 20, :REPLY_VERY_LATE_AFTER_DAYS => 40, + :RESPONSIVE_STYLING => false, :SITE_NAME => 'Alaveteli', :SKIP_ADMIN_AUTH => false, :SPECIAL_REPLY_VERY_LATE_AFTER_DAYS => 60, diff --git a/lib/mail_handler/backends/mail_extensions.rb b/lib/mail_handler/backends/mail_extensions.rb index 87af526bf..f778cbc14 100644 --- a/lib/mail_handler/backends/mail_extensions.rb +++ b/lib/mail_handler/backends/mail_extensions.rb @@ -1,4 +1,5 @@ require 'mail/message' +require 'mail/part' require 'mail/fields/common/parameter_hash' module Mail class Message @@ -9,6 +10,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 @@ -95,4 +102,5 @@ module Mail end end + end |