<div dir="ltr"><div><div><div><div><div><div>The way this should work is as follows:<br><br></div>- new e-mail arrives at the recipient&#39;s box and procmail picks it up and checks the X-Forward-For header<br></div>- if the header does NOT contain any of those listed, it forwards the message to the specified gmail address<br>
</div>  &gt; STOP &lt;<br><br></div>- if the header exists and contains any of the matches listed, the message gets dropped into the recipient&#39;s inbox<br></div><div>AND<br></div>- it is at this point that I want it to also forward a copy of said message to the second e-mail address<br>
<br><br></div><div>The first rule works as expected.  Message comes in, first rule checks it and upon failing, bounces back out to gmail.  Nothing happens after that.  When the message returns, it passes the first rule and gets dropped in the recipient&#39;s box.  When I added the second rule, nothing changed.  The first keeps running as is and the second is simply ignored.<br>
<br></div><div>Now, perhaps I&#39;m wrong in thinking that when it comes back and passes the first rule, it will also run through the second rule.  Is this a case where I need to write things wrapped in a nest?  Sort of like an IF .. THEN .. ELSE?<br>
<br></div><div>A<br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 7:50 PM, jdow <span dir="ltr">&lt;<a href="mailto:jdow@earthlink.net" target="_blank">jdow@earthlink.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 2013/01/23 15:28, Ashley M. Kirchner wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Ok, I&#39;m still trying to figure this out.  On the new, test account, i can get it<br>
to log so I just need to figure out the other two.  However, I recreated the<br>
same recipe on the test account and what I&#39;m seeing in the log is the first part<br>
of the recipe only, it doesn&#39;t seem to do anything with the second part.<br>
<br>
So this (adjusted for the test account):<br>
<br>
LOGFILE=/var/log/procmail<br>
VERBOSE=yes<br>
<br>
:0<br></div>
* !^X-Forwarded-For: <a href="mailto:kirash4@gmail.com" target="_blank">kirash4@gmail.com</a> &lt;mailto:<a href="mailto:kirash4@gmail.com" target="_blank">kirash4@gmail.com</a>&gt;<br>
<a href="mailto:mytest@pcigrafx.com" target="_blank">mytest@pcigrafx.com</a> &lt;mailto:<a href="mailto:ashley@pcigrafx.com" target="_blank">ashley@pcigrafx.com</a>&gt;<br>
* !^X-Forwarded-For: <a href="mailto:kirash4@gmail.com" target="_blank">kirash4@gmail.com</a> &lt;mailto:<a href="mailto:kirash4@gmail.com" target="_blank">kirash4@gmail.com</a>&gt;<br>
<a href="mailto:mytest@pcraft.com" target="_blank">mytest@pcraft.com</a> &lt;mailto:<a href="mailto:ashley@pcraft.com" target="_blank">ashley@pcraft.com</a>&gt;<br>
* !^From.*<a href="mailto:kirash4@gmail.com" target="_blank">kirash4@gmail.com</a> &lt;mailto:<a href="mailto:kirash4@gmail.com" target="_blank">kirash4@gmail.com</a>&gt;<br>
* !^To.*<a href="mailto:mytest@papillon.pcraft.com" target="_blank">mytest@papillon.pcraft.<u></u>com</a> &lt;mailto:<a href="mailto:ashley@papillon.pcraft.com" target="_blank">ashley@papillon.<u></u>pcraft.com</a>&gt;<br>

! <a href="mailto:kirash4@gmail.com" target="_blank">kirash4@gmail.com</a> &lt;mailto:<a href="mailto:ashley@gmail.com" target="_blank">ashley@gmail.com</a>&gt;<br>
<br>
:0c<br>
* ^X-Forwarded-For: <a href="mailto:kirash4@gmail.com" target="_blank">kirash4@gmail.com</a> &lt;mailto:<a href="mailto:kirash4@gmail.com" target="_blank">kirash4@gmail.com</a>&gt;<br>
<a href="mailto:mytest@pcigrafx.com" target="_blank">mytest@pcigrafx.com</a> &lt;mailto:<a href="mailto:ashley@pcigrafx.com" target="_blank">ashley@pcigrafx.com</a>&gt;<br>
* ^X-Forwarded-For: <a href="mailto:kirash4@gmail.com" target="_blank">kirash4@gmail.com</a> &lt;mailto:<a href="mailto:kirash4@gmail.com" target="_blank">kirash4@gmail.com</a>&gt;<br>
<a href="mailto:mytest@pcraft.com" target="_blank">mytest@pcraft.com</a> &lt;mailto:<a href="mailto:ashley@pcraft.com" target="_blank">ashley@pcraft.com</a>&gt;<br>
! <a href="mailto:salesdept@pcraft.com" target="_blank">salesdept@pcraft.com</a> &lt;mailto:<a href="mailto:salesdept@pcraft.com" target="_blank">salesdept@pcraft.com</a>&gt;<br>
</blockquote>
<br>
Ashley, it might pay to explicitly say, in words, what you think you<br>
want to do if the first rule passes, if the first rule does not pass<br>
and the second rule passes, and if neither rule passes.<br>
<br>
As it is your description of passing the first rule is the correct<br>
action for what you&#39;ve developed as a rule. You have delivered the<br>
email and rule processing ceases at that point. So you might have<br>
to clone the output of the first rule to pass it to the second rule<br>
IF that is the action you want based on your disappointment at these<br>
rules doing what you told them to do.<br>
<br>
{^_^}<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
users mailing list<br>
<a href="mailto:users@lists.fedoraproject.org" target="_blank">users@lists.fedoraproject.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/users" target="_blank">https://admin.fedoraproject.<u></u>org/mailman/listinfo/users</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Mailing_list_guidelines" target="_blank">http://fedoraproject.org/wiki/<u></u>Mailing_list_guidelines</a><br>
Have a question? Ask away: <a href="http://ask.fedoraproject.org" target="_blank">http://ask.fedoraproject.org</a><br>
<br>
</div></div></blockquote></div><br></div>