Bug 742155 - There can be both 'Copy to' and 'Move to' actions in a filter. Do not assume only one of them exists when renaming folders. r=mbanner
authoraceman <acelists@atlas.sk>
Mon, 23 Apr 2012 19:04:53 -0400
changeset 11714 9aace1fa76ffa6a2b96e01e10681da2f7c70b95a
parent 11713 da0cbfbfbeb7e2df9b9d1a1a464c032c4e4b9e49
child 11715 33e93567f9f3f7d43fc8e9553d8a28d22d95ea67
push idunknown
push userunknown
push dateunknown
reviewersmbanner
bugs742155
Bug 742155 - There can be both 'Copy to' and 'Move to' actions in a filter. Do not assume only one of them exists when renaming folders. r=mbanner
mailnews/base/search/src/nsMsgFilterList.cpp
--- a/mailnews/base/search/src/nsMsgFilterList.cpp
+++ b/mailnews/base/search/src/nsMsgFilterList.cpp
@@ -1152,17 +1152,16 @@ NS_IMETHODIMP nsMsgFilterList::MatchOrCh
             //if we just want to match the uri's, newFolderUri will be null
             if (!newFolderUri.IsEmpty())
             {
               rv = filterAction->SetTargetFolderUri(newFolderUri);
               NS_ENSURE_SUCCESS(rv, rv);
             }
           }
         }
-        break;  //we allow only one move action per filter
       }
     }
   }
   return rv;
 }
 
 // this would only return true if any filter was on "any header", which we
 // don't support in 6.x