Module: MIME::Headers::Internet

Included in:
Mail
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

Instance Attribute Details

#bccObject

Returns the value of attribute bcc.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def bcc
  @bcc
end

#ccObject

Returns the value of attribute cc.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def cc
  @cc
end

#commentsObject

Returns the value of attribute comments.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def comments
  @comments
end

#dateObject

Returns the value of attribute date.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def date
  @date
end

#fromObject

Returns the value of attribute from.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def from
  @from
end

#in_reply_toObject

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

#keywordsObject

Returns the value of attribute keywords.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def keywords
  @keywords
end

#message_idObject

Returns the value of attribute message_id.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def message_id
  @message_id
end

#referencesObject

Returns the value of attribute references.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def references
  @references
end

#reply_toObject

Returns the value of attribute reply_to.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def reply_to
  @reply_to
end

#senderObject

Returns the value of attribute sender.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def sender
  @sender
end

#subjectObject

Returns the value of attribute subject.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def subject
  @subject
end

#toObject

Returns the value of attribute to.



19
20
21
# File 'lib/mime/headers/internet.rb', line 19

def to
  @to
end