Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Empty trash in 6.0 PHP Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
hyperpac
Newbie
Newbie
Avatar

Joined: 23 January 2011
Location: Germany
Online Status: Offline
Posts: 17
Posted: 04 February 2011 at 6:52am | IP Logged Quote hyperpac

Hey,

every time I try to empty the trash, I get the following error. Although the error appears, the mails are deleted afterwards.

What can I do ?

Thx & best regards
Pac

Notice: Use of undefined constant MAILMODE_DeleteMessageWhenItsRemovedFromTrash - assumed 'MAILMODE_DeleteMessageWhenItsRemovedFromTrash' in /srv/www/vhosts/webmail.hyperpac.de/httpdocs/common/class_ma ilprocessor.php on line 729 Notice: Use of undefined constant MAILMODE_KeepMessagesOnServerAndDeleteMessageWhenItsRemovedF romTrash - assumed ' MAILMODE_KeepMessagesOnServerAndDeleteMessageWhenItsRemovedF romTrash' in /srv/www/vhosts/webmail.hyperpac.de/httpdocs/common/class_ma ilprocessor.php on line 730
Back to Top View hyperpac's Profile Search for other posts by hyperpac Visit hyperpac's Homepage
 
hyperpac
Newbie
Newbie
Avatar

Joined: 23 January 2011
Location: Germany
Online Status: Offline
Posts: 17
Posted: 04 February 2011 at 7:17am | IP Logged Quote hyperpac

hyperpac wrote:
Hey,

every time I try to empty the trash, I get the following error. Although the error appears, the mails are deleted afterwards.


Update: The mails are NOT deleted on the server.
Back to Top View hyperpac's Profile Search for other posts by hyperpac Visit hyperpac's Homepage
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 04 February 2011 at 7:20am | IP Logged Quote Igor

Locate the following code in common/class_mailprocessor.php file (line ~729):

Code:
if ($this->_account->MailMode == MAILMODE_DeleteMessageWhenItsRemovedFromTrash ||
$this->_account->MailMode ==  MAILMODE_KeepMessagesOnServerAndDeleteMessageWhenItsRemovedF romTrash)


and replace it with:

Code:
if ($this->_account->MailMode == EAccountMailMode::DeleteMessageWhenItsRemovedFromTrash ||
  $this->_account->MailMode ==  EAccountMailMode::KeepMessagesOnServerAndDeleteMessageWhenIt sRemovedFromTrash)


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


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 04 February 2011 at 7:25am | IP Logged Quote Igor

Sadly, looks like forum is breaking the code. Locate this code and replace
with this.

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

Joined: 23 January 2011
Location: Germany
Online Status: Offline
Posts: 17
Posted: 04 February 2011 at 8:28am | IP Logged Quote hyperpac

Done.

It kills the error but it doesn´t solve the problem. The mails are removed from trash but not from the server (POP3)...
Back to Top View hyperpac's Profile Search for other posts by hyperpac Visit hyperpac's Homepage
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 05 February 2011 at 12:06am | IP Logged Quote Igor

I have just checked this myself, and as far as I can tell, this only affects mails removed prior to making
the modification. Once the modification is made, the mails are removed from POP3 server just fine.

--
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