diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-11-15 16:21:38 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-11-15 16:21:38 +0000 |
commit | 9ef3f43fca535ffb52d2420bcfd8f18e5213b943 (patch) | |
tree | 682e6e8ec1b36ae8483a022be45b389c9ab2da1a | |
parent | 388c75bfbd18fcaf273d95c21dc132ad19f0cefe (diff) |
Add some extra accessors to Mail::Message for now
-rw-r--r-- | lib/mail_handler/backends/mail_extensions.rb | 7 | ||||
-rw-r--r-- | lib/mail_handler/mail_handler.rb | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/mail_handler/backends/mail_extensions.rb b/lib/mail_handler/backends/mail_extensions.rb new file mode 100644 index 000000000..cbe0491ed --- /dev/null +++ b/lib/mail_handler/backends/mail_extensions.rb @@ -0,0 +1,7 @@ +module Mail + class Message + attr_accessor :url_part_number + attr_accessor :rfc822_attachment # when a whole email message is attached as text + attr_accessor :within_rfc822_attachment # for parts within a message attached as text (for getting subject mainly) + end +end
\ No newline at end of file diff --git a/lib/mail_handler/mail_handler.rb b/lib/mail_handler/mail_handler.rb index 0bd9a82f0..24d14b5c8 100644 --- a/lib/mail_handler/mail_handler.rb +++ b/lib/mail_handler/mail_handler.rb @@ -4,6 +4,7 @@ require 'tmpdir' module MailHandler if RUBY_VERSION.to_f >= 1.9 + require 'backends/mail_extensions' require 'backends/mail_backend' include Backends::MailBackend else |