# File lib/mail/part.rb, line 37 def action delivery_status_data['action'].value end
Creates a new empty Content-ID field and inserts it in the correct order into the Header. The ContentIdField object will automatically generate a unique content ID if you try and encode it or output it to_s without specifying a content id.
It will preserve the content ID you specify if you do.
# File lib/mail/part.rb, line 10 def add_content_id(content_id_val = '') header['content-id'] = content_id_val end
# File lib/mail/part.rb, line 20 def add_required_fields add_content_id unless has_content_id? super end
# File lib/mail/part.rb, line 33 def bounced? !!(action =~ /failed/) end
# File lib/mail/part.rb, line 29 def delivery_status_data delivery_status_report_part? ? parse_delivery_status_report : {} end
# File lib/mail/part.rb, line 25 def delivery_status_report_part? main_type =~ /message/ && sub_type =~ /delivery-status/ end
# File lib/mail/part.rb, line 49 def diagnostic_code delivery_status_data['diagnostic-code'].value end
# File lib/mail/part.rb, line 45 def error_status delivery_status_data['status'].value end
# File lib/mail/part.rb, line 41 def final_recipient delivery_status_data['final-recipient'].value end
Returns true if the part has a content ID field, the field may or may not have a value, but the field exists or not.
# File lib/mail/part.rb, line 16 def has_content_id? header.has_content_id? end
Generated with the Darkfish Rdoc Generator 2.