Author |
|
gdegoulet2 Newbie
Joined: 12 April 2011 Location: France
Online Status: Offline Posts: 8
|
Posted: 12 April 2011 at 5:11am | IP Logged
|
|
|
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 |
|
|
gdegoulet2 Newbie
Joined: 12 April 2011 Location: France
Online Status: Offline Posts: 8
|
Posted: 12 April 2011 at 5:15am | IP Logged
|
|
|
to get the patch
message-list-
prototype.js.patch
|
Back to Top |
|
|