Bug #254474 --> Fix a regression when using quick search on message bodies for POP3 accounts.

This commit is contained in:
scott%scott-macgregor.org 2004-08-16 21:36:44 +00:00
parent dfefe5119f
commit 6de4b3f3d8

View File

@ -348,7 +348,10 @@ function createSearchTermsWithList(aTermsArray)
var ioService = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);
gSearchSession.addScopeTerm(gSearchInput.searchMode == kQuickSearchBody && !ioService.offline ? nsMsgSearchScope.onlineMail : nsMsgSearchScope.offlineMail, selectedFolder);
gSearchSession.addScopeTerm(gSearchInput.searchMode == kQuickSearchBody &&
!ioService.offline &&
selectedFolder.server.type == 'imap' ? nsMsgSearchScope.onlineMail : nsMsgSearchScope.offlineMail,
selectedFolder);
// add each item in termsArray to the search session