procmail
[Top] [All Lists]

Autoresponder, typo somewhere?

1999-05-26 23:56:10
Hi,


I have set up an autoresponder which has been working in the past very
well (it was just the autorsponding part). I wanted to extend it with a
log, where the date, the one who did the request and the subject (which
has the request) and a different folder where the request is stored.

The first parts works like a charm, however someone asking for data.txt
gets logged and gets his request put in the folder admin, but does not
get the requested file (which exists). What am i doing wrong here?


{
    :0 cw
    * ^Subject: send pgp keys
    | (formail -rt \
        -I "From: autoresponder(_at_)sisterray(_dot_)xs4all(_dot_)nl" \
        -I "Subject: [autoreply] pgp keys" \
        -I "Reply-To: rejo(_at_)sisterray(_dot_)xs4all(_dot_)nl" \
        -A "X-Loop: autoresponder(_at_)sisterray(_dot_)xs4all(_dot_)nl"; \
        echo ""; cat $FILEDIR/autoreply.txt; \
        echo ""; echo "RSA 2048 0xFAE40065 1997-12-06"; echo ""; cat 
$FILEDIR/FAE40065.key; \
        echo ""; echo "DSS/DH 1024 0x2C8059B5 1999-04-30"; echo ""; cat 
$FILEDIR/2C8059B5.key \
        ) | $SENDMAIL -t

        :0 c:
        | formail -tz -xDate: -xFrom: -xSubject: >> $LOGDIR/bot

            :0 a:
            admin

    :0 cw
    * ^Subject: send data.txt
    | (formail -rt \
        -I "From: autoresponder(_at_)sisterray(_dot_)xs4all(_dot_)nl" \
        -I "Subject: [autoreply] data.txt" \
        -I "Reply-To: rejo(_at_)sisterray(_dot_)xs4all(_dot_)nl" \
        i-A "X-Loop: autoresponder(_at_)sisterray(_dot_)xs4all(_dot_)nl"; \
        cat $FILEDIR/autoreply.txt; \
        echo ""; cat $FILEDIR/data.txt \
        ) | $SENDMAIL -t

        :0 c:
        | formail -tz -xDate: -xFrom: -xSubject: >> $LOGDIR/bot

            :0 a:
            admin
}


Another question, formail puts the Date, From and Subject of the
requester all on a new line in the log. Is there a way to have them put
on one line?

Thanx for the help,

    -Rejo.


-- 
= Rejo  [Sister Ray Crisiscentrum]                    
rejo(_at_)sisterray(_dot_)xs4all(_dot_)nl
= http://mediaport.org/~sister              PGP: RSA FAE40065, DSS/DH 2C8059B5
------------------------------------------------------------------------------



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