Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: delete all message from a folder Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
gdegoulet2
Newbie
Newbie


Joined: 12 April 2011
Location: France
Online Status: Offline
Posts: 8
Posted: 12 April 2011 at 5:11am | IP Logged Quote gdegoulet2

it's very hard to delete all messages from a folder which contains more than
1000 messages when you display 20 messages per page ...
you a provide a patch to the delete function.

If no message are selected or focused, if you click the TOOLBAR_DELETE, it ask
you if you want delete ALL messages from the current folder.


--- ./js/mail/message-list-prototype.js.ori   &nb sp; 2011-04-12 14:05:27.000000000
+0200
+++ ./js/mail/message-list-prototype.js    & nbsp;2011-04-12 14:06:47.000000000 +0200
@@ -1110,10 +1110,21 @@
                      xml = messagesXml + xml + '</messages>';
                }
           }
-           ;if (xml == '') {
+           ;//patch gd : delete all message if none is selected
+           ;if (xml == '' && type == TOOLBAR_DELETE )
+           ;     {
+           ;     xml += '<message id="1:*" charset="-1" size="-1">';
+                           xml += '<uid>' + GetCData(HtmlDecode('1:*')) +
'</uid>';
+                           xml += '<folder id="' + this._folderId + '">
<full_name>' + GetCData(this._folderFullName) + '</full_name></folder>';
+                           xml += '</message>';
+           ;     xml = messagesXml + xml;
+           ;     if (!confirm('Delete All Messages from
'+this._folderFullName+' ?')) xml = '';
+                 }
+           ;else
+           ;     if (xml == '') {
                alert(Lang.WarningMarkListItem );
                return false;
-            }
+                 }
           var paramIndex;
           var count = idArray.length;
           if (type == TOOLBAR_MOVE_TO_FOLDER || type == TOOLBAR_IS_SPAM
@@ -1566,4 +1577,4 @@
Back to Top View gdegoulet2's Profile Search for other posts by gdegoulet2 Visit gdegoulet2's Homepage
 
gdegoulet2
Newbie
Newbie


Joined: 12 April 2011
Location: France
Online Status: Offline
Posts: 8
Posted: 12 April 2011 at 5:15am | IP Logged Quote gdegoulet2

to get the patch
message-list-
prototype.js.patch
Back to Top View gdegoulet2's Profile Search for other posts by gdegoulet2 Visit gdegoulet2's Homepage
 

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