Bug 743467 - Don't get feedUrls in the account folder or trash folder. r+a=dbienvenu
authoralta88 <alta88@gmail.com>
Mon, 16 Apr 2012 03:21:54 -0400
changeset 11197 a5d3845c39106621b894cea61f67bdc2302e247a
parent 11196 614748f7113121e184275515b090d1112e83c928
child 11198 5d0a6ebdbd338fe385b565de1130f34823f89e01
push id463
push userbugzilla@standard8.plus.com
push dateTue, 24 Apr 2012 17:34:51 +0000
treeherdercomm-beta@e53588e8f7b0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs743467
Bug 743467 - Don't get feedUrls in the account folder or trash folder. r+a=dbienvenu
mailnews/extensions/newsblog/content/utils.js
--- a/mailnews/extensions/newsblog/content/utils.js
+++ b/mailnews/extensions/newsblog/content/utils.js
@@ -373,16 +373,20 @@ function deleteFeed(aId, aServer, aParen
  * If folder move/renames are fixed, remove msgDatabase accesses and get the
  * list directly from the feeds db.
  * 
  * @param  nsIMsgFolder - the folder.
  * @return array of urls, or null if none.
  */
 function getFeedUrlsInFolder(aFolder)
 {
+  if (aFolder.isServer || aFolder.getFlag(Ci.nsMsgFolderFlags.Trash))
+    // Never any feedUrls in the account folder or trash folder.
+    return null;
+
   let feedUrlArray = [];
 
   let feedurls = aFolder.getStringProperty("feedUrl");
   if (feedurls)
     return feedurls.split(kFeedUrlDelimiter);
 
   // Go to msgDatabase for the property, make sure to handle errors.
   let msgDb;