Author |
|
MattG Newbie
Joined: 18 February 2010 Location: Canada
Online Status: Offline Posts: 20
|
Posted: 10 November 2010 at 8:21am | IP Logged
|
|
|
Is there a way to globally change this option for all users?
Thanks,
Matt
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 10 November 2010 at 8:27am | IP Logged
|
|
|
Are you using .NET or PHP edition? Also, are you speaking of default value or changing this for existing accounts (or maybe both)?
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
MattG Newbie
Joined: 18 February 2010 Location: Canada
Online Status: Offline Posts: 20
|
Posted: 10 November 2010 at 9:10am | IP Logged
|
|
|
Hi Igor,
I'm using PHP and I am speaking of changing both default and existing accounts if it's possible?
Thanks
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 11 November 2010 at 3:21am | IP Logged
|
|
|
The list of available mailmodes can be found in common/class_account.php file:
Code:
define('MAILMODE_DeleteMessage sFromServer', 0);
define('MAILMODE_LeaveMessages OnServer', 1);
define('MAILMODE_KeepMessagesO nServer', 2);
define('MAILMODE_DeleteMessage WhenItsRemovedFromTrash', 3);
define('MAILMODE_KeepMessagesO nServerAndDeleteMessageWhenItsRemovedFromTrash', 4); |
|
|
I understand you need option 3 to be used by default. Apply the following modification to common/class_account.php file (~line 166):
Code:
var $MailMode = MAILMODE_LeaveMessagesOnServer; |
|
|
The similar modification should be applied to adminpanel/plugins/webmail/common/class_account.php file (line ~111):
Code:
var $MailMode = WM_MAILMODE_LeaveMessagesOnServer; |
|
|
To amend those settings for existing POP3 accounts in WebMail Pro, you'll need to run the following SQL query:
Code:
UPDATE awm_accounts SET mail_mode = 3 WHERE mail_protocol = 0 |
|
|
I hope you understand that it's required to create backup copy of database and files before making any modifications.
Hope this helps!
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
MattG Newbie
Joined: 18 February 2010 Location: Canada
Online Status: Offline Posts: 20
|
Posted: 11 November 2010 at 6:09am | IP Logged
|
|
|
That's great Igor thank you. I will let you know how it works.
|
Back to Top |
|
|
MattG Newbie
Joined: 18 February 2010 Location: Canada
Online Status: Offline Posts: 20
|
Posted: 11 November 2010 at 12:09pm | IP Logged
|
|
|
MattG wrote:
That's great Igor thank you. I will let you know how it works. |
|
|
Worked perfectly, thanks again!
|
Back to Top |
|
|
AIWEB Groupie
Joined: 19 October 2010 Location: United States
Online Status: Offline Posts: 54
|
Posted: 03 December 2010 at 9:33am | IP Logged
|
|
|
Will this remove messages from server when received too?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 04 December 2010 at 3:54am | IP Logged
|
|
|
No, there's a separate mailmode for that purpose:
Code:
define('MAILMODE_DeleteMessagesFromServer', 0); |
|
|
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|