Yes, Procmail will do exactly what you need. Read
man procmail General examples
man procmailex For recipe examples
man procmailrc For how to set up ~/.procmailrc
man procmailsc Weighted scoring, can use for spam filter
If you're sorting for several users from one main mailbox you may want to
use a more generic recipe:
:0
* .*[EMAIL PROTECTED]
* !^From.*[EMAIL PROTECTED]
! frank
This tells procmail to search the header for any instance of the address
[EMAIL PROTECTED], meaning that it will usually match mail from lists,
but not to match if frank sends the letter. Basically he can't mail a
letter to himself using this recipe <grin>, but the recipe assumes that if
his address is listed anywhere in the header then the letter is meant for
him.
If you use a more conventional approach:
:0
* ^TO_.*[EMAIL PROTECTED]
! frank
Mail addressed to frank will go to his username, but mail meant for him
from a talk list won't. For this you'll have to have a separate recipe
per each talk list that he's subscribed to. This can get confusing if you
have several users subscribed to varying talk lists with some overlapping.
That's why I suggested the first approach.
Glen
Today, at 22:31, [EMAIL PROTECTED] sent through the Star Gate:
>Glen, thanks for the reply.
>
>However if I su as local user (example george) and local user george has
>.fetchmailrc all of the incomming mails endup in /var/spool/mail/george
>mailbox. Even if the message was fpr [EMAIL PROTECTED] My ISP is holding
>all of the messages in one mailbox. I am looking for some way to sort
>incoming mail to separate (proper) mailboxes.
>
>I su as george
>
>fetchmail -v
>
>all messages are delivered to george@localhost account acording to
>maillog
>
>Maybe it is not posible to doit. Do I have to use procmail and
>.procmailrc file to somehow do this trick?
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list