"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "comm/suite/mailnews/content/folderPane.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.

folderPane.js  (seamonkey-2.53.8.source.tar.xz):folderPane.js  (seamonkey-2.53.8.1.source.tar.xz)
skipping to change at line 630 skipping to change at line 630
let messenger = Cc["@mozilla.org/messenger;1"].createInstance(Ci.nsIMessen ger); let messenger = Cc["@mozilla.org/messenger;1"].createInstance(Ci.nsIMessen ger);
for (let i = 0; i < count; i++) { for (let i = 0; i < count; i++) {
let msgHdr = messenger.msgHdrFromURI(dt.mozGetDataAt("text/x-moz-message ", i)); let msgHdr = messenger.msgHdrFromURI(dt.mozGetDataAt("text/x-moz-message ", i));
if (!i) if (!i)
sourceFolder = msgHdr.folder; sourceFolder = msgHdr.folder;
array.appendElement(msgHdr); array.appendElement(msgHdr);
} }
let isMove = Cc["@mozilla.org/widget/dragservice;1"] let isMove = Cc["@mozilla.org/widget/dragservice;1"]
.getService(Ci.nsIDragService).getCurrentSession() .getService(Ci.nsIDragService).getCurrentSession()
.dragAction == Ci.nsIDragService.DRAGDROP_ACTION_MOVE; .dragAction == Ci.nsIDragService.DRAGDROP_ACTION_MOVE;
if (!sourceFolder.canDeleteMessages) let isNews = sourceFolder.flags & Ci.nsMsgFolderFlags.Newsgroup;
if (!sourceFolder.canDeleteMessages || isNews)
isMove = false; isMove = false;
Services.prefs.setCharPref("mail.last_msg_movecopy_target_uri", Services.prefs.setCharPref("mail.last_msg_movecopy_target_uri",
targetFolder.URI); targetFolder.URI);
Services.prefs.setBoolPref("mail.last_msg_movecopy_was_move", isMove); Services.prefs.setBoolPref("mail.last_msg_movecopy_was_move", isMove);
// ### ugh, so this won't work with cross-folder views. We would // ### ugh, so this won't work with cross-folder views. We would
// really need to partition the messages by folder. // really need to partition the messages by folder.
cs.CopyMessages(sourceFolder, array, targetFolder, isMove, null, cs.CopyMessages(sourceFolder, array, targetFolder, isMove, null,
msgWindow, true); msgWindow, true);
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

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