Package org.ujmp.mail
Class ImapUtil
java.lang.Object
org.ujmp.mail.ImapUtil
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
javax.mail.Folder
getMessages
(String folderName) getMessages
(javax.mail.Folder folder) ListMatrix<javax.mail.Folder>
ListMatrix<javax.mail.Folder>
private javax.mail.Store
getStore()
ListMatrix<javax.mail.Folder>
getSubFolders
(String folderName) ListMatrix<javax.mail.Folder>
getSubFolders
(javax.mail.Folder folder)
-
Field Details
-
host
-
user
-
password
-
connectiontimeout
private final int connectiontimeout- See Also:
-
timeout
private final int timeout- See Also:
-
protocol
- See Also:
-
sslEnable
private final boolean sslEnable- See Also:
-
port
private final int port- See Also:
-
ignoreCertificate
private final boolean ignoreCertificate- See Also:
-
session
private javax.mail.Session session -
store
private javax.mail.Store store
-
-
Constructor Details
-
ImapUtil
-
-
Method Details
-
getPersonalFolders
- Throws:
Exception
-
getSubFolders
- Throws:
Exception
-
getMessages
- Throws:
Exception
-
getFolder
- Throws:
Exception
-
getSubFolders
- Throws:
Exception
-
getMessages
- Throws:
Exception
-
getStore
- Throws:
Exception
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-