Tracking flag updates in saved search results was broken when expunging messages. --HG-- branch : HEAD
Moved non-syncing related search result updating code to a separate file and did some other cleanups. --HG-- branch : HEAD