You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.storage.addressparser.RFC822Mailbox

java.lang.Object
   |
   +----grendel.storage.addressparser.RFC822Mailbox

Stores a RFC822 mailbox. Defined as being either a addr-spec (local-part@domain), or a route-addr preceeded by a phrase (phrase <local-part@domain>).

Mere humans tends to consider this a name and an address. In the first addr-spec form, the name is usually within a RFC822 comment preceeding the addr-spec. If there is no comment, a mailbox name may be null.

Normally used only as a data type returned by the RFC822MailboxList class.

See Also: RFC822MailboxList


public class  RFC822Mailbox
     extends java.lang.Object
{
          // Fields 2
     private String address;
     private String name;

          // Constructors 1
     public RFC822Mailbox(String, String);

          // Methods 3
     public String getAddress();
     public String getMailboxString();
     public String getName();
}



Fields


name

   private String name


address

   private String address



Constructors


RFC822Mailbox

   public RFC822Mailbox(String name, 
                        String address) 

Should be created only by the RFC822MailboxList class.

See Also: RFC822MailboxList




Methods


getName

   public String getName() 


getAddress

   public String getAddress() 


getMailboxString

   public String getMailboxString() 

Creates a valid RFC822 mailbox. Since we don't like to lose the comment information, this will reform addresses like:
(Eric Bina) ebina@netscape.com
to addresses like:
"Eric Bina" <ebina@netscape.com>



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4