Module: MIME::Headers::Internet
- Included in:
- Defined in:
- lib/mime/headers/internet.rb
Overview
The RFC 2822 Internet message header fields.
Mailbox fields #to, #from, #cc, #bcc, and #reply_to may be a single email address, an array of email addresses, or a hash of email => name pairs. When using a hash, set name to nil
to omit email display name. The #sender field is a special case and can only contain a single mailbox.
Constant Summary collapse
- ATOM =
Internet message character specifications (RFC 5322)
/[[:alnum:]!#\$%&'*+\/=?^_`{|}~-]/
- DOT_ATOM =
/^#{ATOM}+(#{ATOM}|\.)*$/
- SPECIALS =
/[()<>\[\]:;@\,."]/
Instance Attribute Summary collapse
-
#bcc ⇒ Object
Returns the value of attribute bcc.
-
#cc ⇒ Object
Returns the value of attribute cc.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#date ⇒ Object
Returns the value of attribute date.
-
#from ⇒ Object
Returns the value of attribute from.
-
#in_reply_to ⇒ Object
Returns the value of attribute in_reply_to.
-
#keywords ⇒ Object
Returns the value of attribute keywords.
-
#message_id ⇒ Object
Returns the value of attribute message_id.
-
#references ⇒ Object
Returns the value of attribute references.
-
#reply_to ⇒ Object
Returns the value of attribute reply_to.
-
#sender ⇒ Object
Returns the value of attribute sender.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Attribute Details
#bcc ⇒ Object
Returns the value of attribute bcc.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def bcc @bcc end |
#cc ⇒ Object
Returns the value of attribute cc.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def cc @cc end |
#comments ⇒ Object
Returns the value of attribute comments.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def comments @comments end |
#date ⇒ Object
Returns the value of attribute date.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def date @date end |
#from ⇒ Object
Returns the value of attribute from.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def from @from end |
#in_reply_to ⇒ Object
Returns the value of attribute in_reply_to.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def in_reply_to @in_reply_to end |
#keywords ⇒ Object
Returns the value of attribute keywords.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def keywords @keywords end |
#message_id ⇒ Object
Returns the value of attribute message_id.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def @message_id end |
#references ⇒ Object
Returns the value of attribute references.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def references @references end |
#reply_to ⇒ Object
Returns the value of attribute reply_to.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def reply_to @reply_to end |
#sender ⇒ Object
Returns the value of attribute sender.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def sender @sender end |
#subject ⇒ Object
Returns the value of attribute subject.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def subject @subject end |
#to ⇒ Object
Returns the value of attribute to.
19 20 21 |
# File 'lib/mime/headers/internet.rb', line 19 def to @to end |