"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "comm/suite/mailnews/content/mailWindowOverlay.js" between
seamonkey-2.53.8.source.tar.xz and seamonkey-2.53.8.1.source.tar.xz

About: SeaMonkey is an all-in-one internet application suite. Using much of the Mozilla source code it contains a Web-browser, email & newsgroup and feed client, IRC chat, and an included HTML editor.

mailWindowOverlay.js  (seamonkey-2.53.8.source.tar.xz):mailWindowOverlay.js  (seamonkey-2.53.8.1.source.tar.xz)
skipping to change at line 346 skipping to change at line 346
if (cancelMenuItem) { if (cancelMenuItem) {
cancelMenuItem.setAttribute("hidden", isNews ? "" : "true"); cancelMenuItem.setAttribute("hidden", isNews ? "" : "true");
} }
// Disable the Move and Copy menus if there are no messages selected. // Disable the Move and Copy menus if there are no messages selected.
// Disable the Move menu if we can't delete messages from the folder. // Disable the Move menu if we can't delete messages from the folder.
var moveMenu = document.getElementById("moveMenu"); var moveMenu = document.getElementById("moveMenu");
var msgFolder = GetLoadedMsgFolder(); var msgFolder = GetLoadedMsgFolder();
if(moveMenu) if(moveMenu)
{ {
var enableMenuItem = aMessage && msgFolder && msgFolder.canDeleteMessages; var enableMenuItem = !isNews && aMessage &&
msgFolder && msgFolder.canDeleteMessages;
moveMenu.setAttribute("disabled", !enableMenuItem); moveMenu.setAttribute("disabled", !enableMenuItem);
} }
var copyMenu = document.getElementById("copyMenu"); var copyMenu = document.getElementById("copyMenu");
var canCopy = aMessage && (!gMessageDisplay.isDummy || var canCopy = aMessage && (!gMessageDisplay.isDummy ||
window.arguments[0].scheme == "file"); window.arguments[0].scheme == "file");
if (copyMenu) if (copyMenu)
copyMenu.setAttribute("disabled", !canCopy); copyMenu.setAttribute("disabled", !canCopy);
// Disable the Forward as/Tag menu items if no message is selected. // Disable the Forward as/Tag menu items if no message is selected.
skipping to change at line 1114 skipping to change at line 1115
if (!(copyBatchKey in this._batches)) if (!(copyBatchKey in this._batches))
this._batches[copyBatchKey] = [msgHdr.folder, this._batches[copyBatchKey] = [msgHdr.folder,
archiveFolderUri, archiveFolderUri,
archiveGranularity, archiveGranularity,
archiveKeepFolderStructure, archiveKeepFolderStructure,
msgYear, msgYear,
monthFolderName]; monthFolderName];
this._batches[copyBatchKey].push(msgHdr); this._batches[copyBatchKey].push(msgHdr);
} }
MailServices.mfn.addListener(this, notificationService.folderAdded); MailServices.mfn.addListener(this, MailServices.mfn.folderAdded);
// Now we launch the code iterating over all message copies, one in turn. // Now we launch the code iterating over all message copies, one in turn.
this.processNextBatch(); this.processNextBatch();
}, },
processNextBatch: function() processNextBatch: function()
{ {
for (let key in this._batches) { for (let key in this._batches) {
this._currentBatch = this._batches[key]; this._currentBatch = this._batches[key];
delete this._batches[key]; delete this._batches[key];
skipping to change at line 1269 skipping to change at line 1270
if (isAsync) if (isAsync)
return; // continues with folderAdded return; // continues with folderAdded
} }
dstFolder = dstFolder.getChildNamed(folderName); dstFolder = dstFolder.getChildNamed(folderName);
} }
} }
if (dstFolder != srcFolder) if (dstFolder != srcFolder)
{ {
// Make sure the target folder is visible in the folder tree. // Make sure the target folder is visible in the folder tree.
let folderTree = document.getElementById("folderTree"); EnsureFolderIndex(gFolderTreeView, dstFolder);
EnsureFolderIndex(folderTree.builderView, dstFolder);
let isNews = srcFolder.flags & Ci.nsMsgFolderFlags.Newsgroup;
// If the source folder doesn't support deleting messages, we // If the source folder doesn't support deleting messages, we
// make archive a copy, not a move. // make archive a copy, not a move.
MailServices.copy.CopyMessages(srcFolder, moveArray, dstFolder, MailServices.copy.CopyMessages(srcFolder, moveArray, dstFolder,
srcFolder.canDeleteMessages, this, srcFolder.canDeleteMessages && !isNews,
msgWindow, true); this, msgWindow, true);
return; // continues with OnStopCopy return; // continues with OnStopCopy
} }
return this.processNextBatch(); return this.processNextBatch();
}, },
// This also implements nsIUrlListener, but we only care about the // This also implements nsIUrlListener, but we only care about the
// OnStopRunningUrl (createStorageIfMissing callback). // OnStopRunningUrl (createStorageIfMissing callback).
OnStartRunningUrl: function(aUrl) OnStartRunningUrl: function(aUrl)
{ {
}, },
 End of changes. 4 change blocks. 
6 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)