Class ProcmailManager
java.lang.Object
com.aoindustries.aoserv.daemon.util.BuilderThread
com.aoindustries.aoserv.daemon.email.ProcmailManager
- All Implemented Interfaces:
TableListener,PackageManager.PackageListener
Builds the .procmailrc configurations.
- Author:
- AO Industries, Inc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe first 6 lines of an auto-generated procmailrc file.static final booleanDisable email attachment type blocks here.static final StringThe old first 6 lines of an auto-generated procmailrc file.static final StringThe file that stores the procmail configuration.Fields inherited from class com.aoindustries.aoserv.daemon.util.BuilderThread
DEFAULT_MAXIMUM_DELAY, DEFAULT_MINIMUM_DELAY, DEFAULT_PROCESS_TIMER_MAXIMUM_TIME, DEFAULT_PROCESS_TIMER_REMINDER_INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic booleanisManual(UserServer lsa) Determines if an existing procmail file is manually maintained.static voidstart()Methods inherited from class com.aoindustries.aoserv.daemon.util.BuilderThread
getMaximumDelay, getMinimumDelay, getProcessTimerMaximumTime, getProcessTimerReminderInterval, getProcessTimerSubject, getRandomDelay, packageListUpdated, tableUpdated, waitForBuild
-
Field Details
-
EMAIL_ATTACHMENT_TYPES_ENABLED
public static final boolean EMAIL_ATTACHMENT_TYPES_ENABLEDDisable email attachment type blocks here. This should be moved to jilter, assuming we can make a faster implementation in Java.- See Also:
-
PROCMAILRC
The file that stores the procmail configuration.- See Also:
-
OLD_AUTO_PROCMAILRC
The old first 6 lines of an auto-generated procmailrc file.- See Also:
-
AUTO_PROCMAILRC
The first 6 lines of an auto-generated procmailrc file.- See Also:
-
-
Method Details
-
doRebuild
protected boolean doRebuild()- Specified by:
doRebuildin classBuilderThread- Returns:
trueif successful orfalseif unsuccessful and needs to be retried.
-
isManual
Determines if an existing procmail file is manually maintained.- Throws:
SQLException- if the account is not an email typeIOException
-
start
- Throws:
IOExceptionSQLException
-
getProcessTimerDescription
- Specified by:
getProcessTimerDescriptionin classBuilderThread
-
