Author |
|
webdbase2 Valued Community Member
Joined: 25 March 2015 Location: Bulgaria
Online Status: Offline Posts: 81
|
Posted: 03 May 2015 at 10:54am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 03 May 2015 at 12:48pm | IP Logged
|
|
|
Awesome, thank you! We'll add it to community plugins repository shortly.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 06 May 2015 at 5:41am | IP Logged
|
|
|
Here it is:
Delete messages permanently (WebMail Plugins)
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
webdbase2 Valued Community Member
Joined: 25 March 2015 Location: Bulgaria
Online Status: Offline Posts: 81
|
Posted: 08 May 2015 at 1:21am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 08 May 2015 at 2:47am | IP Logged
|
|
|
Great, thanks for the update! We've just updated the plugin page accordingly.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
webdbase2 Valued Community Member
Joined: 25 March 2015 Location: Bulgaria
Online Status: Offline Posts: 81
|
Posted: 08 May 2015 at 4:19am | IP Logged
|
|
|
Found a bug. It would always delete the message regardless of user's decision (Yes/No).
Here is the fixed version.
|
Back to Top |
|
|