Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Delete from server when trash is emptied Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MattG
Newbie
Newbie


Joined: 18 February 2010
Location: Canada
Online Status: Offline
Posts: 20
Posted: 10 November 2010 at 8:21am | IP Logged Quote MattG

Is there a way to globally change this option for all users?

Thanks,
Matt
Back to Top View MattG's Profile Search for other posts by MattG
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 November 2010 at 8:27am | IP Logged Quote Igor

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


Joined: 18 February 2010
Location: Canada
Online Status: Offline
Posts: 20
Posted: 10 November 2010 at 9:10am | IP Logged Quote MattG

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


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 11 November 2010 at 3:21am | IP Logged Quote Igor

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


Joined: 18 February 2010
Location: Canada
Online Status: Offline
Posts: 20
Posted: 11 November 2010 at 6:09am | IP Logged Quote MattG

That's great Igor thank you. I will let you know how it works.
Back to Top View MattG's Profile Search for other posts by MattG
 
MattG
Newbie
Newbie


Joined: 18 February 2010
Location: Canada
Online Status: Offline
Posts: 20
Posted: 11 November 2010 at 12:09pm | IP Logged Quote MattG

MattG wrote:
That's great Igor thank you. I will let you know how it works.


Worked perfectly, thanks again!
Back to Top View MattG's Profile Search for other posts by MattG
 
AIWEB
Groupie
Groupie
Avatar

Joined: 19 October 2010
Location: United States
Online Status: Offline
Posts: 54
Posted: 03 December 2010 at 9:33am | IP Logged Quote AIWEB

Will this remove messages from server when received too?
Back to Top View AIWEB's Profile Search for other posts by AIWEB
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 04 December 2010 at 3:54am | IP Logged Quote Igor

No, there's a separate mailmode for that purpose:

Code:
define('MAILMODE_DeleteMessagesFromServer', 0);


--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

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