Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Permanent Deletion Plugin Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
webdbase2
Valued Community Member
Valued Community Member


Joined: 25 March 2015
Location: Bulgaria
Online Status: Offline
Posts: 81
Posted: 03 May 2015 at 10:54am | IP Logged Quote webdbase2

Well, it's a plugin now and can be found here.
The plugin allows permanent deletion of a message, skipping the Trash, as described in details here.
In case someone wants to change the images of the trash, modify lines 39 and 40 in the file
Code:
delete-permanently/js/include.js
open_trash and close_trash contain the base64 encoded PNGs.
There is one more setting - line 29 of
Code:
delete-permanently/index.php

$log=0;
If set to 1, the communication with the IMAP server is logged to file /tmp/del.log
Enable the plugin in config.php
Code:
'plugins.delete-permanently' => true,
Back to Top View webdbase2's Profile Search for other posts by webdbase2
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 03 May 2015 at 12:48pm | IP Logged Quote Igor

Awesome, thank you! We'll add it to community plugins repository shortly.

--
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: 6104
Posted: 06 May 2015 at 5:41am | IP Logged Quote Igor

Here it is:

Delete messages permanently (WebMail Plugins)

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


Joined: 25 March 2015
Location: Bulgaria
Online Status: Offline
Posts: 81
Posted: 08 May 2015 at 1:21am | IP Logged Quote webdbase2

An improved version of the plugin is available.
It turned out Afterlogic's API offers a lot more sophisticated way to achieve the goal. So here it is.
The new things are:
- purely native code;
- no PHP functions, so no $log=0 option For logging use native Afterlogic's log.
Back to Top View webdbase2's Profile Search for other posts by webdbase2
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 08 May 2015 at 2:47am | IP Logged Quote Igor

Great, thanks for the update! We've just updated the plugin page accordingly.

--
Regards,
Igor, AfterLogic Support

Back to Top View Igor's Profile Search for other posts by Igor
 
webdbase2
Valued Community Member
Valued Community Member


Joined: 25 March 2015
Location: Bulgaria
Online Status: Offline
Posts: 81
Posted: 08 May 2015 at 4:19am | IP Logged Quote webdbase2

Found a bug. It would always delete the message regardless of user's decision (Yes/No).
Here is the fixed version.
Back to Top View webdbase2's Profile Search for other posts by webdbase2
 

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