If I understand that correctly nothing at all gets through
the first filter except mail that has been through gmail once.

If that is correct a simple clone will do the rest.

#initial filter for "has been through gmail once" goes here.


# copy email to second recipient
:0 c
! secondrecipi...@foobar.com

# falls through to firstrecipi...@foobar.com

{^_^}

On 2013/01/24 11:09, Ashley M. Kirchner wrote:
Yeah.  I realize that's probably what's getting jdow confused as well.
Hopefully my previous message explains it better.  One bit I forgot to add, was
something jdow asked, 'what happens if someone e-mails kirash4@gmail directly'

GMail forwards it back to my @pcraft domain.  And that too will have the
X-Forwarded-For header in it.  So yes, the *only* messages that should reach the
second part of the recipe, are those who have gone through the GMail loop (and
therefore will contain the X-Forwarded-For header).  Those messages are the ones
I'm wanting to a) drop in my mailbox and b) send a copy to a co-worker.

Also asked was, why not use CC or BCC or a simple forward.  I tried the forward
path.  Thing is, that happens both when the message arrives the first time as
well as the second time, after getting filtered.  So that won't work.

As for CC and BCC, I can't ask everyone and every list to send a CC/BCC to my
coworker.  That's just insane.  Hence this approach to let procmail do it for 
me.

So yes, I am well aware that I need to make a copy of the message to send to my
coworker.  THAT's the part I can't figure out.  It needs to happen only when it
comes back from GMail, not before.


On Thu, Jan 24, 2013 at 11:39 AM, Joe Zeff <j...@zeff.us <mailto:j...@zeff.us>> 
wrote:

    On 01/24/2013 01:26 AM, jdow wrote:


        If you subtract out the loop are you trying to make a courtesy copy to
        one or more other addresses for all mail that is coming in? Your
        brief description below suggests that is the case. But the whole GMail
        loop is "undocumented" so it's hard to guess what really gets done.


    I'm not sure, but I think he's running all of his incoming mail through
    Gmail's spam filter and only working with what gets through.

    --
    users mailing list
    users@lists.fedoraproject.org <mailto:users@lists.fedoraproject.org>
    To unsubscribe or change subscription options:
    https://admin.fedoraproject.__org/mailman/listinfo/users
    <https://admin.fedoraproject.org/mailman/listinfo/users>
    Guidelines: http://fedoraproject.org/wiki/__Mailing_list_guidelines
    <http://fedoraproject.org/wiki/Mailing_list_guidelines>
    Have a question? Ask away: http://ask.fedoraproject.org




--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to