For IMAP, if you blow away the INBOX.msf file, all the headers will be downloaded again, so all the filters should apply. The behavior will be just like manual execution of filters on INBOX. I would let bienvenu comment on label issue because he implemented the feature.
Navin Seth Spitzer wrote: > Bill Sheppard wrote: > >> I've started using the labelling feature (very nice). I have an >> excessively >> large Inbox (IMAP, about 4400 messages totalling 250MB). I recently >> deleted >> INBOX and INBOX.msf on my Win98 system in order to have Mozilla >> rebuild these >> files (the previous INBOX was 350MB, presumably rebuilding compressed >> out a >> bunch of deleted messages). Upon rebuilding the inbox those messages >> which had previously been labelled via a message filter were still >> labelled properly, but those which I had manually relabelled >> weren't,and those which match the message filter but were initially >> received before the message filter was put in place were not >> labelled. So my questions are: > >> >> 1) Is the label information stored on the IMAP server, or purely >> locally (in the .MSF file?) >> > For IMAP, yes, it is stored locally in the summary file. see > http://www.mozilla.org/mailnews/arch/Labels_Engineering_Plan.html for > details on why we aren't storing them on the server (yet, or if ever.) > > Off the top of my head, I think we only apply filters to new mail. > removing the summary file doesn't change the message state on the > server. So when you downloaded headers to rebuild the summary file, > the filter rules are only applied to new messages. > > cc bienvenu and naving (the IMAP and filter tag team) to confirm. > > Note, there is a bug about apply filters "after the fact". Once we > have that (it will be a while), it would allow you to re-run your > filters on your inbox, and re-label messages. But, you'd still lose > any manul filter changes. > > Note: this is for IMAP only. for local mail, the label state is > stored in the mbox file, so if you remove the .msf, the label state is > restored, even manual filter changes. > > -Seth >
