Package de.uplanet.lucy.server.mail
Klasse SimpleMailParser
java.lang.Object
de.uplanet.lucy.server.mail.SimpleMailParser
Simple mail parser to simplify the parsing of the most common cases of multipart mails.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic final SimpleMailParserCreate a new instance.parseMessage(javax.mail.Message p_message, Path p_dirAttachment) Parse a message and extract useful information as for instance the subject, from- and to-address(es), attachments...
-
Methodendetails
-
newInstance
Create a new instance.- Gibt zurück:
- A new instance.
-
parseMessage
public ParsedMessage parseMessage(javax.mail.Message p_message, Path p_dirAttachment) throws javax.mail.MessagingException, IOException Parse a message and extract useful information as for instance the subject, from- and to-address(es), attachments...- Parameter:
p_message- The message to parse.p_dirAttachment- The directory in which to store the extracted attachments.- Gibt zurück:
- A parsed message with detailed information.
- Löst aus:
javax.mail.MessagingException- If any failure occurs.IOException- If an I/O error occurred.IllegalArgumentException- If either the message or the attachment directory parameter isnull.
-