I've been working on something to do my IMAP filtering in a pre-mutt
execution. I use the perl module Mail::IMAPClient and perl's great
regex for my filtering. I've only spent about 30 minutes working
on it so, it's no where close to what i want but, it will work
and do exactly what i'm looking to do (filter mail into folders).
joe
Jeff Turner([EMAIL PROTECTED])@Mon, Apr 23, 2001 at 10:48:57AM +1000:
> Hi,
>
> I've been wondering about this for a long time..
>
> If one uses POP3 to download mail, then filtering can be done with procmail,
> and everyone's happy. However I'd like to use IMAP, since I access mail from
> various computers.
>
> So the question is, how can one do IMAP-based email filtering? How do most
> people do it? Procmail scripts on the server? Courier-specific IMAP filtering
> languages[1]?
>
> Assuming there is no universal solution, could mutt be made to emulate one,
> like netscape mail does? Ie:
> - download all the headers
> - filter based on the header info
> - Issue IMAP "copy" instructions to move the actual messages to the right
> mailboxes.
>
> Has anyone done this with mutt before?
>
> Perhaps it should be a separate utility, invoked before mutt, that applies a
> local set of procmail rules to a remote set of IMAP mailboxes. Does anyone know
> of anything like this?
>
> Thanks,
>
> --Jeff
>
> [1] http://search.ietf.org/internet-drafts/draft-showalter-sieve-12.txt