In Files

Namespace

Class Index [+]

Quicksearch

Mail

encoding: utf-8


The following is an adaptation of ruby 1.9.2’s shellwords.rb file, it is modified to include ’+’ in the allowed list to allow for sendmail to accept email addresses as the sender with a + in them


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8

Mail Envelope

The Envelope class provides a field for the first line in an mbox file, that looks like “From mikel@test.lindsaar.net DATETIME“

This envelope class reads that line, and turns it into an Envelope.from and Envelope.date for your use.


encoding: utf-8


encoding: utf-8


encoding: utf-8

Comments Field

The Comments field inherits from UnstructuredField and handles the Comments: header field in the email.

Sending comments to a mail message will instantiate a Mail::Field object that has a CommentsField as it’s field type.

 

An email header can have as many comments fields as it wants. There is no upper limit, the comments field is also optional (that is, no comment is needed)

Examples:

 mail = Mail.new
 mail.comments = 'This is a comment'
 mail.comments    #=> 'This is a comment'
 mail[:comments]  #=> '#<Mail::Field:0x180e5e8 @field=#<Mail::CommentsField:0x180e1c4
 mail['comments'] #=> '#<Mail::Field:0x180e5e8 @field=#<Mail::CommentsField:0x180e1c4
 mail['comments'] #=> '#<Mail::Field:0x180e5e8 @field=#<Mail::CommentsField:0x180e1c4

 mail.comments = "This is another comment"
 mail[:comments].map { |c| c.to_s } 
 #=> ['This is a comment', "This is another comment"]

encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8

keywords = “Keywords:” phrase *(“,” phrase) CRLF


encoding: utf-8


encoding: utf-8

trace = [return]

                        1*received

return = “Return-Path:” path CRLF

path = ([CFWS] “<” ([CFWS] / addr-spec) “>” [CFWS]) /

                        obs-path

received = “Received:” name-val-list “;” date-time CRLF

name-val-list = [CFWS] [name-val-pair *(CFWS name-val-pair)]

name-val-pair = item-name CFWS item-value

item-name = ALPHA *([“-”] (ALPHA / DIGIT))

item-value = 1*angle-addr / addr-spec /

                         atom / domain / msg-id

encoding: utf-8

subject = “Subject:” unstructured CRLF


encoding: utf-8


This is an almost cut and paste from ActiveSupport v3.0.6, copied in here so that Mail itself does not depend on ActiveSupport to avoid versioning conflicts


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


Autogenerated from a Treetop grammar. Edits may be lost.


encoding: utf-8


encoding: us-ascii


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8


encoding: utf-8

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.