Class: Msg::Bounce
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Msg::Bounce
- Defined in:
- app/models/msg/bounce.rb
Class Method Summary collapse
-
.from(email, message = "") ⇒ Object
This is so far just a quick and slightly dirty console call to turn an email message into a bounce record.
Instance Method Summary collapse
Class Method Details
.from(email, message = "") ⇒ Object
This is so far just a quick and slightly dirty console call to turn an email message into a bounce record. With a bit more header-processing we should be able to record type and subtype.
20 21 22 |
# File 'app/models/msg/bounce.rb', line 20 def self.from(email, ="") create(:email => email, :raw_message => ) end |
Instance Method Details
#fatal? ⇒ Boolean
10 11 12 |
# File 'app/models/msg/bounce.rb', line 10 def fatal? bounce_type == 'Permanent' end |
#transient? ⇒ Boolean
14 15 16 |
# File 'app/models/msg/bounce.rb', line 14 def transient? bounce_type == 'Transient' end |