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
Modifier and TypeFieldDescriptionstatic final String
The first 6 lines of an auto-generated procmailrc file.static final boolean
Disable email attachment type blocks here.static final String
The old first 6 lines of an auto-generated procmailrc file.static final String
The 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 boolean
static boolean
isManual
(UserServer lsa) Determines if an existing procmail file is manually maintained.static void
start()
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:
doRebuild
in classBuilderThread
- Returns:
true
if successful orfalse
if 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:
IOException
SQLException
-
getProcessTimerDescription
- Specified by:
getProcessTimerDescription
in classBuilderThread
-