public class MailFilterJob extends AbstractFaxToMailJob
| Modifier and Type | Field and Description |
|---|---|
protected FaxToMailServiceContext |
serviceContext |
SERVICE_CONTEXT| Constructor and Description |
|---|
MailFilterJob() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkEmailsOfFolder(javax.mail.Folder folder)
Check the emails of teh folder, create the emails in the database and delete the email in the folder
|
void |
checkEmailsOnPop3(EmailAccount account)
Checks the emails of the account
|
protected void |
close(javax.mail.Folder folder) |
protected void |
decomposeMultipartEmail(List<Attachment> attachments,
javax.mail.Part part,
Email email,
EmailService emailService)
Decompose a multipart part.
|
void |
execute(org.quartz.JobExecutionContext jobExecutionContext) |
protected Charset |
getCharset(javax.mail.Part part) |
getServiceContextprotected FaxToMailServiceContext serviceContext
public void execute(org.quartz.JobExecutionContext jobExecutionContext)
throws org.quartz.JobExecutionException
org.quartz.JobExecutionExceptionpublic void checkEmailsOnPop3(EmailAccount account)
account - protected void close(javax.mail.Folder folder)
protected void checkEmailsOfFolder(javax.mail.Folder folder)
folder - the folder to checkprotected void decomposeMultipartEmail(List<Attachment> attachments, javax.mail.Part part, Email email, EmailService emailService) throws Exception
part - the part to decomposeemail - the email object to fill with the attachments or contentemailService - email serviceExceptionprotected Charset getCharset(javax.mail.Part part) throws javax.mail.MessagingException
javax.mail.MessagingExceptionCopyright © 2014 CodeLutin. All rights reserved.