Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Default mail mode Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
thughes
Newbie
Newbie


Joined: 04 October 2011
Online Status: Offline
Posts: 2
Posted: 04 October 2011 at 9:13am | IP Logged Quote thughes

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 View thughes's Profile Search for other posts by thughes
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 06 October 2011 at 12:56am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
thughes
Newbie
Newbie


Joined: 04 October 2011
Online Status: Offline
Posts: 2
Posted: 07 October 2011 at 10:00am | IP Logged Quote thughes

Excellent, I think I got it. Thanks
Back to Top View thughes's Profile Search for other posts by thughes
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide