procmail
[Top] [All Lists]

RE: remotely add text to a file

2001-08-14 10:04:58
OK... I put the following recipe (just to see how we're doin') in
procmailrc:

PASSWORD=`cat $PMDIR/passwd`

# add the first line from the body to spam word list
:0b:$PMDIR/lock
* ^TO_lkladar+robot+$PASSWORD(_at_)komoseva(_dot_)globalnet(_dot_)hr
* ^Subject: change password
| sed -n 1p >$PMDIR/passwd

and when I send a message to
        lkladar+robot+SECRET(_at_)komoseva(_dot_)globalnet(_dot_)hr
with the subject
        change password
I get:

procmail: Assigning "INCLUDERC=/home/lkladar/.Procmail/remote.rc"
procmail: Executing "cat,/home/lkladar/.Procmail/passwd"
procmail: Assigning "PASSWORD=SECRET"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):
(.*[^a-zA-Z])?)_lkladar+robot+$PASSWORD(_at_)komoseva(_dot_)globalnet(_dot_)hr"

What's the catch?

Thanks,
Luka

* Luka Kladaric * mailto:lkladar+mail(_at_)komoseva(_dot_)globalnet(_dot_)hr *
* http://luka.kladaric.net * ICQ: 100757909 *
* GSM: +38598473999 * Ph: +38516551701 *
* Too many freaks, not enough circuses *

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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