Author |
|
thughes Newbie
Joined: 04 October 2011
Online Status: Offline Posts: 2
|
Posted: 04 October 2011 at 9:13am | IP Logged
|
|
|
I'm trying to set webmail lite to leave messages on the server for a certain number of days by default. I've changed mail_mode in mysql but none of the options I tried enabled deletion after a certain number of days. Is there another field that needs changed?
I would also like to be able to change this on existing accounts but I'm not too good with SQL.
EDIT: I'm using the .NET version
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 06 October 2011 at 12:56am | IP Logged
|
|
|
Quote:
Is there another field that needs changed? |
|
|
Yes. Aside from changing mail_mode, you'll need to change mail_on_server_days value. Default values for both are supplied in App_Code\Account.cs file (lines ~293-294):
Code:
_mailMode = MailMode.LeaveMessagesOnServer;
_mailsOnServerDays = 1; |
|
|
According to list found in App_Code\Enumerations.cs file, MailMode can take one of the following values:
Code:
DeleteMessagesFromServer = 0,
LeaveMessagesOnServer = 1,
KeepMessagesOnServer = 2,
DeleteMessageWhenItsRemovedFromTrash = 3,
KeepMessagesOnServerAndDeleteMessageWhenItsRemovedFromTrash = 4
} |
|
|
and you need MailMode set to either 2 or 4, depending on whether you need "Delete message from server when it is removed from Trash" to be off or on.
Quote:
I would also like to be able to change this on existing accounts |
|
|
For existing accounts, you'll need to update awm_accounts table and set mail_mode and mail_on_server_days values to those you need.
Quote:
but I'm not too good with SQL. |
|
|
Then it's time for you to get familarized with UPDATE syntax
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
thughes Newbie
Joined: 04 October 2011
Online Status: Offline Posts: 2
|
Posted: 07 October 2011 at 10:00am | IP Logged
|
|
|
Excellent, I think I got it. Thanks
|
Back to Top |
|
|