class Mail::SenderField

:nodoc:<br>mail.formatted #=> [‘Mikel Lindsaar <mikel@test.lindsaar.net>’]<br>mail.addresses #=> [‘mikel@test.lindsaar.net’]<br>mail.decoded #=> ‘Mikel Lindsaar <mikel@test.lindsaar.net>’<br>mail.encoded #=> “Sender: Mikel Lindsaar <mikel@test.lindsaar.net>rn”<br><br>mail #=> ‘#<Mail::Field:0x180e5e8 @field=#<Mail::SenderField:0x180e1c4<br>mail #=> ’#<Mail::Field:0x180e5e8 @field=#<Mail::SenderField:0x180e1c4<br>mail #=> ‘#<Mail::Field:0x180e5e8 @field=#<Mail::SenderField:0x180e1c4
mail.sender #=> ’mikel@test.lindsaar.net’
mail.sender = ‘Mikel Lindsaar <mikel@test.lindsaar.net>’
mail = Mail.new
== Examples:
addresses and groups of addresses.
Only one Sender field can appear in a header, though it can have multiple
module instance metods.
has a SenderField as its field type. This includes all Mail::CommonAddress
Sending sender to a mail message will instantiate a Mail::Field object that
field in the email.
The Sender field inherits sender StructuredField and handles the Sender: header
= Sender Field

def self.singular?

def self.singular?
  true
end

def addresses

def addresses
  Array(super.first)
end

def default

def default
  address
end