procmail
[Top] [All Lists]

Re: $MATCH being called incorrectly?

2003-04-09 00:44:58
On Tuesday, April 8, 2003, at 07:28  PM, David W. Tamkin wrote:

Vince has,

:0bDfw
* ^Subject:[   ]*[^    ]+[     ]+super dupper secret text
* ^Subject:[   ]*\/[^  ]+
| cat > $HOME/dump_dir/$MATCH-file.txt \
; $DBACCESS informix1 < $HOME/dump_dir/$MATCH-file.txt \
; $FORMAIL -I"From:vjl(_at_)vjl(_dot_)org" 
-I"To:vjl(_at_)crichton(_dot_)vjl(_dot_)org" \
-I"Subject: your $MATCH test job is done" | $SENDMAIL -oi -t -f \
vjl(_at_)vjl(_dot_)org

and tells us,

As it stands above, the recipe won't work.

And I'm a bonehead. As I was just about to send a long reply to this message, I found the issue: I left a space after the first 2 "\"s at the end of the line. As soon as I removed the spaces, the recipe did exactly as I intended.

The recipe's intent, FWIW, is to take the entire body of a message and cat it into a text file. The text file is now a large .sql file that is read in by an Informix command line program called dbaccess. Once the query is complete, a blank e.mail is mailed to me at my main machine [well, the subject isn't blank], letting me know that the query [which can take up to 3 hours] has finished.

Ok, I'm still a bonehead...thanks for your time, David..sorry to waste it. :(

/vjl/


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