[prev in list] [next in list] [prev in thread] [next in thread] 

List:       procmail
Subject:    Re: How do I...
From:       era eriksson <era () iki ! fi>
Date:       1999-02-26 7:35:30
[Download RAW message or body]

On Thu, 25 Feb 1999 18:20:42 -0500 (EST), Moe Drippins
<ug@unixgeek.com> wrote:
 > Essentially, I want something like:
 > |formail +1 -ds formail -i "Reply-To: known_list_address, `formail -rx 'To:'`" -s \
>> mailbox_for_this_list

I can't think of any really neat "self-contained" way to do this.
Pipe each message to Procmail, though, and you have a reasonably neat
solution. 

    | formail +1 -ds procmail digest-fix.rc

where digest-fix.rc is something like

    SHELL=/bin/sh            # always!
    REPLYTO1=`formail -IReply-To: -IResent- -rtzxTo:`
    :0:
    | formail -I "Reply-To: known_list_address, ${REPLYTO1}" >>this_list

    # The "oops clause"
    :0
    { LOG="big-time oops!!!
"
        :0:
        /tmp/oopsie
    }

I took the liberty to change your formail -rx to something I believe
will work slightly better, but of course, I don't know what the input
is like so I'm merely speculating.

/* era */

-- 
.obBotBait: It shouldn't even matter whether    <http://www.iki.fi/~era/>
I am a resident of the state of Washington. <http://members.xoom.com/procmail/>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic