Class: ActionMailer::DeliveryMethods::Maildir
- Inherits:
-
Object
- Object
- ActionMailer::DeliveryMethods::Maildir
- Defined in:
- lib/actionmailer-maildir.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#settings ⇒ Object
Returns the value of attribute settings.
Instance Method Summary collapse
- #deliver!(mail) ⇒ Object
-
#initialize(settings = {}) ⇒ Maildir
constructor
A new instance of Maildir.
Constructor Details
#initialize(settings = {}) ⇒ Maildir
Returns a new instance of Maildir.
12 13 14 15 16 |
# File 'lib/actionmailer-maildir.rb', line 12 def initialize(settings = {}) self.settings = settings @maildir = ::Maildir.new(settings[:path]) @maildir.serializer = ::Maildir::Serializer::Mail.new end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
9 10 11 |
# File 'lib/actionmailer-maildir.rb', line 9 def path @path end |
#settings ⇒ Object
Returns the value of attribute settings.
10 11 12 |
# File 'lib/actionmailer-maildir.rb', line 10 def settings @settings end |
Instance Method Details
#deliver!(mail) ⇒ Object
18 19 20 |
# File 'lib/actionmailer-maildir.rb', line 18 def deliver!(mail) @maildir.add(mail) # writes an RFC2822 message to disk end |