I am heartily confused. I have found several
examples of writing to a file but can't seem to
get the following to work. The part that does
work sends out email depending on text matches
found in the body of the incoming email. The
email address has been put in a variable:
:0 Bc
* Referee Director
! $REFEREE_DIR
:0 Bc
* Referee Scheduler
! $REFEREE_ASSIGN
For the incoming email, I want to put
the subject, date, and a var that I get
out of the body (the emailer has sent
me his email address) and write it to
a file, but not the .log file. I tried
to pipe the vars to a file, but no go.
I put the line SHELL=/bin/csh in for the
first line - i think that means pipe will
work.
I tried the following, which I think tries
to run a shell script:
:0w:
* ^Subject:[ ]\/[^ ].*
| our-script -s "$MATCH" >>$HOME/BHmail_log
Q: does this pass in a variable to a script
named our-script? How would you pass in
multiple variables? The script would just
write the variables to a file, using >>, right?
The first line is something like
#!/usr/bin/ksh right?
I cant quite get the following to work either
(It's from a faq)
:0 hic: # we don't necessarily need `w'
* condition
| echo message: $FROM $SUBJECT >> $biff
:0 hi: # Or you could use this
* condition
dummy=| echo message: $FROM $SUBJECT >> $biff
I would appreciate any help
Tom