procmail
[Top] [All Lists]

Re: Just a wee bit of help on Reply-To

1997-04-24 00:02:00
On 24 Apr 1997 09:34:04 +0300,
era eriksson <reriksso(_at_)cc(_dot_)helsinki(_dot_)fi> wrote:
On Wed, 23 Apr 1997 21:45:41 -0500,
Dennis Davison <ddavison(_at_)execpc(_dot_)com> wrote:
Below is a simple mailer (list) that I'm currently using. My dilemma is
to get formail working to add a "Reply-To" field in the header. 
If I understand this correctly, there's only a simple change you need
to make: 
:0* ^TO.*beer@
{
:0fh
| formail -A"Reply-To: The address you want here, perhaps 
<beer(_at_)execpc(_dot_)com>"

Oops -- I should read before replying. The following is certainly not
working (or maybe your mail software wrapped the recipes and broke
them?): 

:0 c! ftz(_at_)fna(_dot_)gov
:0 c! biham(_at_)dave(_dot_)rl(_dot_)ny
:0 c! hoen(_at_)iac(_dot_)nt
:0 c! Carine(_at_)ab(_dot_)org
:0 c! em(_at_)fox(_dot_)ns(_dot_)ca
:0 c! jerbb(_at_)and(_dot_)stanford(_dot_)edu
:0 c! dr(_at_)doctor(_dot_)com
:0 c! kor(_at_)xn(_dot_)com
:0! ddavison(_at_)execpc(_dot_)com
}

Try this:

:0
* ^TObeer@
| formail -A"Reply-To: yada yada yada" \
  | $SENDMAIL $SENDMAILFLAGS \
    ftz(_at_)fna(_dot_)gov biham(_at_)dave(_dot_)rl(_dot_)ny 
hoen(_at_)iac(_dot_)nt Carine(_at_)ab(_dot_)org \
    em(_at_)fox(_dot_)ns(_dot_)ca jerbb(_at_)and(_dot_)stanford(_dot_)edu 
dr(_at_)doctor(_dot_)com kor(_at_)xn(_dot_)com \
    ddavison(_at_)execpc(_dot_)com

Yes, that's right, don't use .* after ^TO. And yes, you can put all
the recipients on the same line. 

Sticking slightly closer to your original, the following would also
work: 

:0
* ^TObeer@
{
    :0fh
    | formail -A"Reply-To: you know who"

    :0
    ! ftz(_at_)fna(_dot_)gov biham(_at_)dave(_dot_)rl(_dot_)ny 
hoen(_at_)iac(_dot_)nt etc etc etc
}

BTW, those are some fairly odd addresses you have there. I'll assume
that .nt is a typo for .net and that .ny works because you're in a .us
domain yourself? 

/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

<Prev in Thread] Current Thread [Next in Thread>