Followup to Bug 1207364 - Saving near identical group of emails (same subject, date and time) should only append one increasing number to the .eml file name: remove whitespace. r=whitespaceremoval a=Aryx DONTBUILD
authorSebastian Hengst <archaeopteryx@coole-files.de>
Sun, 27 Sep 2015 22:41:33 +0200
changeset 18451 cdda64815f77f5d7c0fbe2072a4647ebf79b2c50
parent 18450 6abae4c3529b9905fe61799dc9678a9aeca6705b
child 18452 bda92538bc44c1c22d08e656eb2195dc0e03ee19
push id11297
push userarchaeopteryx@coole-files.de
push dateSun, 27 Sep 2015 20:41:53 +0000
treeherdercomm-central@cdda64815f77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswhitespaceremoval, Aryx
bugs1207364
Followup to Bug 1207364 - Saving near identical group of emails (same subject, date and time) should only append one increasing number to the .eml file name: remove whitespace. r=whitespaceremoval a=Aryx DONTBUILD
mail/base/content/mailCommands.js
--- a/mail/base/content/mailCommands.js
+++ b/mail/base/content/mailCommands.js
@@ -355,17 +355,17 @@ function SaveAsFile(uris)
   else {
     let filenames = [];
     for (let i = 0; i < uris.length; i++) {
       let msgHdr = messenger.messageServiceFromURI(uris[i])
                             .messageURIToMsgHdr(uris[i]);
 
       let nameBase = GenerateFilenameFromMsgHdr(msgHdr);
       let name = GenerateValidFilename(nameBase, ".eml");
-      
+
       let number = 2;
       while (filenames.includes(name)) { // should be unlikely
         name = GenerateValidFilename(nameBase + "-" + number, ".eml");
         number++;
       }
       filenames.push(name);
     }
     messenger.saveMessages(uris.length, filenames, uris);