class TMail::Address
parse( str: String )
parses str and creates new TMail::Address
object.
new( locals: Array of String, domains : Array of String )
creates new TMail::Address
object consist from local part
locals and domain part domains.
spec
-< String
an address spec (form of "....@....").
routes
-< Array of String
delivery routes. Strings do not include character "@".
phrase
-< String
short description for this address (e.g. real name).
encoded( eol = "\r\n", encoding = 'j' )
-< String
converts this object into MIME-encoded string.
decoded( eol = "\n", encoding = 'e' )
-< String
converts this object into decoded string.
class TMail::AddressGroup
new( name: String, addrs: Array of TMail::Address/TMail::AddressGroup )
-< TMail::AddressGroup
creates new TMail::AddressGroup
object.
name is the name of this group, addrs is addresses
which belongs to this group.
name
-< String
the (human readable) name of this group.
addresses
-< Array of TMail::Address/TMail::AddressGroup
addresses which belongs to this group.
to_a
-< Array of TMail::Address/TMail::AddressGroup
to_ary
-< Array of TMail::Address/TMail::AddressGroup
equals to addresses.dup
.
flatten
-< Array of TMail::Address
flatten this group into one level of array of TMail::Address
.
add( a: Array of TMail::Address/TMail::AddressGroup )
push( a: Array of TMail::Address/TMail::AddressGroup )
adds an address or an group to this group.
delete( addr: Array of TMail::Address/TMail::AddressGroup )
removes addr from this group.
each {|a| .... }
equals to addresses.each {|a| .... }
.
each_address {|a| .... }
equals to flatten.each {|a| .... }
encoded( eol = "\r\n", encoding = 'j' )
-< String
converts this object into MIME-encoded string.
decoded( eol = "\n", encoding = 'e' )
-< String
converts this object into decoded string.
==( other )
eql?( other )
judges if self is equal to other, by comparing self.addresses
and
other.addresses
. (self.name
is meanless)