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