fetchmail-friends
[Top] [All Lists]

Re: [fetchmail] deliver to subfolder

2002-12-22 06:08:41
Christoph Mitasch <christoph(_dot_)mitasch(_at_)fh-hagenberg(_dot_)at> writes:

Hi,

I'd like to fetch mail from lots of different pop3, imap-mailboxes and
put them all together into my local mailbox.

Fetchmail works quite well but one thing would be very nice, to put the
fetched mails into subfolders of my local mailbox.

ok, a short example.
I fetch a mail-account from the gmx-mail-Server and like it to go into a
Subfolder in my local mailbox, let's say INBOX.gmx.

I played around with mail-filtering (maildrop) put I didn't got it
working for all cases. Sometimes the headers look quite strange and just
escape from my regexps.

Anyone an idea ?

Make sure you extract the envelope recipient (X-Original-To with
Postfix, Delivered-To with qmail or older Postfix, X-Envelope-To with
SOME sendmail setups, Envelope-To with Exim) and use that for filtering.

If you're using the MDA option, make sure you don't have multidrop
mailboxes (such as "is joe hans here" or "is * here" or "is hans=franz *
here" -- singledrop mentions exactly one user or none at all).

Another solution is to pass arguments to maildrop and parse them, and
give a distinct mda option for every upstream server in your
configuration. Check man maildrop first.

-- 
Matthias Andree

<Prev in Thread] Current Thread [Next in Thread>