that works... Thanks!<br><br><div><span class="gmail_quote">On 7/7/06, <b class="gmail_sendername">jdow</b> <<a href="mailto:jdow@earthlink.net">jdow@earthlink.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
From: "Paul Howarth" <<a href="mailto:paul@city-fan.org">paul@city-fan.org</a>><br><br>> Phil wrote:<br>>> I have procmail installed and working with fetchmail.<br>>> There is only one problem...
<br>>><br>>> If I have more than one email in the To: or CC: fileds and both these email<br>>> addrresses are supposed to go to two different folders... they do not...<br>>> both email go to the same folder...
<br>>><br>>> How do I setup .procmailrc so that it parses the entire To: or CC: fileds<br>>> first before moving them to a directory?<br>>><br>>> In the example below if an email has both support and user1 in CC: or To:
<br>>> fileds I will get two emails in the support directory....however if<br>>> there is<br>>> only one email address in the To: or CC: fileds the emails will go to the<br>>> appropriate directory... any help would be great.
<br>>><br>>> Here is my .procmailrc file<br>>><br>>> MAILDIR=$HOME/mail<br>>><br>>> LOGFILE=/var/log/procmail.log<br>>> #VERBOSE=yes<br>>><br>>> :0<br>>> * ^From:.*
postmaster@fakeemail.com*<br>>> /dev/null<br>>><br>>> :0<br>>> * ^TOsupport@<br>>> $MAILDIR/support<br>>><br>>> :0<br>>> * ^TOuser1@<br>>> $MAILDIR/friends<br>><br>
> Both of these last two recipes are "delivering" recipes, which means<br>> that procmail stops processing the mail when it matches one of them.<br>><br>> What you could do would be to add the "c" flag to each recipe (":0 c"),
<br>> which would mean that the mail was copied for the purposes of those<br>> recipes and processing would continue even if either or both of those<br>> were matched.<br>><br>> Of course, you would then find that mail for either or both of these
<br>> addresses went on to be processed by any further recipes in your<br>> procmailrc (so it would get delivered to the default mailbox as well by<br>> default). You'd need to add another recipe to prevent that if that's not
<br>> what you wanted.<br><br>You could try something like this. It should do what you want.<br>===8<---<br>MAILDIR=$HOME/mail<br><br>LOGFILE=/var/log/procmail.log<br>#VERBOSE=yes<br><br>:0<br>* ^From:.*postmaster@fakeemail.com
*<br>/dev/null<br><br># Is it to both support@ and user1@<br>:0<br>* ^TOsupport@<br>* ^TOuser1@<br>{<br>    # copy and deliver to support<br>    :0 c<br>    $MAILDIR/support<br><br>    # final delivery to friends.<br>    :0
<br>    $MAILDIR/friends<br>}<br><br># Process single addresses.<br>:0<br>* ^TOsupport@<br>$MAILDIR/support<br><br>:0<br>* ^TOuser1@<br>$MAILDIR/friends<br><br># Presumably somewhere down here you have a final delivery address if
<br># you want it somewhere other than the default.<br>===8<---<br><br><br><br>{^_^}<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">
https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div><br>