public class GreenMailConfiguration extends Object
| Constructor and Description |
|---|
GreenMailConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static GreenMailConfiguration |
aConfig() |
String |
getPreloadDir()
Gets preload directory value or null if not set.
|
List<UserBean> |
getUsersToCreate() |
boolean |
hasPreloadDir()
Checks if preload directory value exists.
|
boolean |
isAuthenticationDisabled() |
boolean |
isSieveIgnoreDetailEnabled() |
GreenMailConfiguration |
withDisabledAuthentication()
Disables authentication.
|
GreenMailConfiguration |
withPreloadDir(String preloadDir)
Configures directory path for preloading emails from filesystem.
|
GreenMailConfiguration |
withSieveIgnoreDetail()
Enables Sieve detail handling, also known as RFC 5233 sub-address extension.
|
GreenMailConfiguration |
withUser(String login,
String password)
The given
GreenMailUser will be created when servers will start. |
GreenMailConfiguration |
withUser(String email,
String login,
String password)
The given
GreenMailUser will be created when servers will start. |
public GreenMailConfiguration withUser(String login, String password)
GreenMailUser will be created when servers will start.login - User id and email addresspassword - Password of user that belongs to login namepublic GreenMailConfiguration withUser(String email, String login, String password)
GreenMailUser will be created when servers will start.email - Email addresslogin - Login name of userpassword - Password of user that belongs to login namepublic static GreenMailConfiguration aConfig()
public List<UserBean> getUsersToCreate()
public GreenMailConfiguration withDisabledAuthentication()
Useful if you want to avoid setting up users up front.
public boolean isAuthenticationDisabled()
withDisabledAuthentication()public GreenMailConfiguration withSieveIgnoreDetail()
public boolean isSieveIgnoreDetailEnabled()
()public GreenMailConfiguration withPreloadDir(String preloadDir)
preloadDir - directory containing emailsGreenMailOperations.loadEmails(Path)public String getPreloadDir()
public boolean hasPreloadDir()
Copyright © 2006–2023 Icegreen Technologies. All rights reserved.