On Tue, Jul 18, 2000 at 09:12:03AM +0200, Matthias Henze wrote:
! i've looked around the doc's and the net and i was not able to find sonme 
! good docs on mail filtering. what i want sounds simple: i want to filter 
! messages for one user to different folders in the maildir depending on 
! headers or what ever.

What do you mean by ``for one user''? Do you mean you share a POP
mailbox with someone else and you want to tell whether a message
was for you or that someone else? Or do you simply mean that you
want to filter depending on where the message is _from_?

In the former case, fetchmail has a multidrop mode; read the manual
page, fetchmail(1), for more info.

In the latter case, look into procmail; qmail has a script that
delivers mail through procmail by default at /var/qmail/boot/proc+df.
All the help you need in writing the filters are in the procmailrc(5)
and procmailex(5) man pages.

If you're delivering to a Maildir, as you suggested above, make sure
that the folder specified in the procmail recipe ends with a slash.

fetchmail: http://www.tuxedo.org/~esr/fetchmail/
procmail: http://www.procmail.org/

Hope it helps,
        ---Chris K.
-- 
 Chris, the Young One |_ Never brag about how your machines haven't been 
  Auckland, New Zealand |_ hacked, or your code hasn't been broken. It's 
http://cloud9.hedgee.com/ |_ guaranteed to bring the wrong kind of 
 PGP: 0xCCC6114E/0x706A6AAD |_ attention. ---Neil Schneider 

Reply via email to