com.irisel.mail
Class MailClient
java.lang.Object
com.irisel.mail.MailClient
public class MailClient
- extends java.lang.Object
Field Summary |
boolean |
textIsHtml
Return the primary text content of the message. |
Constructor Summary |
MailClient()
Constructor Uses default strings |
MailClient(java.lang.String[] args)
Constructor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
textIsHtml
public boolean textIsHtml
- Return the primary text content of the message.
MailClient
public MailClient()
throws javax.mail.MessagingException
- Constructor Uses default strings
- Throws:
javax.mail.MessagingException
MailClient
public MailClient(java.lang.String[] args)
throws javax.mail.MessagingException
- Constructor
- Parameters:
args
- protocol,host,user,password
- Throws:
javax.mail.MessagingException
getProtocol
public java.lang.String getProtocol()
setProtocol
public void setProtocol(java.lang.String protocol)
getHost
public java.lang.String getHost()
setHost
public void setHost(java.lang.String host)
getUser
public java.lang.String getUser()
setUser
public void setUser(java.lang.String user)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String password)
getUrl
public java.lang.String getUrl()
setUrl
public void setUrl(java.lang.String url)
getPort
public int getPort()
setPort
public void setPort(int port)
getFolders
public javax.mail.Folder[] getFolders()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getFolders
public javax.mail.Folder[] getFolders(java.lang.String pattern)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getNamespaces
public javax.mail.Folder[] getNamespaces()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
main
public static void main(java.lang.String[] argv)
dumpPart
public static void dumpPart(javax.mail.Part p)
throws java.lang.Exception
- Throws:
java.lang.Exception
dumpEnvelope
public static void dumpEnvelope(javax.mail.Message m)
throws java.lang.Exception
- Throws:
java.lang.Exception
pr
public static void pr(java.lang.String s)
- Print a, possibly indented, string.
getFolder
public javax.mail.Folder getFolder(java.lang.String namespace,
java.lang.String folder)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getTextPart
public javax.mail.Part getTextPart(javax.mail.Part p,
boolean htmlPreferred)
throws javax.mail.MessagingException,
java.io.IOException
- Throws:
javax.mail.MessagingException
java.io.IOException
getText
public java.lang.String getText(javax.mail.Part p)
throws javax.mail.MessagingException,
java.io.IOException
- Throws:
javax.mail.MessagingException
java.io.IOException
getTextType
public java.lang.String getTextType(javax.mail.Part p)
throws javax.mail.MessagingException,
java.io.IOException
- Throws:
javax.mail.MessagingException
java.io.IOException