procmail
[Top] [All Lists]

Re: Sending Multiple lines of text in a recipe

2000-02-24 12:19:16
On 24 February 2000, Michael DeMutis <mike(_at_)2gen(_dot_)net> wrote:
This may seem like pretty basic question but I couldn't find what I
needed in the documentation.

My autoresponder recipe script looks like this:

:0 f
* ^TOinfo(_at_)2gen(_dot_)net
{
        :0 h c
        * !^FROM_DAEMON
        * !^X-Loop: info(_at_)2gen(_dot_)net
        | (formail -r -A"Precedence: junk" \
        -A"X-Loop: info(_at_)2gen(_dot_)net From: 2Gen.Inc. 
<info(_at_)2gen(_dot_)net> Reply-To: Ed Kopas <ed(_at_)2gen(_dot_)net>" ; \
        cat /usr/home/mike/autores/info.txt) | /usr/sbin/sendmail -t
}

How do I specify a line break in the line of text that I'm sending.
I want to send 3 lines - the X-Loop, the From: line and the Reply-To
line.

I try including these into my autoresponder text but that doesn't
work because it ends up as part of the message body rather than the
message headers.  How do I specify line breaks, or rather, how do I
send multiple lines to sendmail?

Is this possible?

    Use three "-A" options to formail:

        :0 hc
        * ! ^FROM_DAEMON
        * ! ^X-Loop: info(_at_)2gen(_dot_)net
        | (formail -r -A "Precedence: junk" \
                -A "X-Loop: info(_at_)2gen(_dot_)net" \
                -A "From: info(_at_)2gen(_dot_)net (2Gen. Inc.)" \
                -A "Reply-To: ed(_at_)2gen(_dot_)net (Ed Kopas)" ; \
                cat /usr/home/mike/autores/info.txt) | $SENDMAIL -oi -t

    Regards,

    Liviu Daia

-- 
Dr. Liviu Daia               e-mail:   Liviu(_dot_)Daia(_at_)imar(_dot_)ro
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc

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