Kreme wrote:
I then tried
| head -c 200 | sendmail -io $SMS
but got this
procmail: Executing " head -c 200 | sendmail -io [$SMS]"
sendmail: not found
The sendmail binary probably isn't in $PATH. Try the $SENDMAIL variable
instead (plus -oi is not transposable into -io).
finally I tried
:0c
* ! ^FROM_DAEMON
{
# Process only the body, wait for the filter
:0bfw
| grep -v "^>" | head -c 200
# Send the copy to the phone and my gmail account for verification
:0
! $SMS, gkreme(_at_)gmail(_dot_)com
}
Which APPEARS to work (no errors) and works from the command line
(only get 200 bytes) but the copy of the mail I get on my account
contains the entire test message text:
There's no `i' flag on your filter -- maybe it failed with a write error
because head doesn't take the full input (though grep does, so I
wouldn't expect that, but it's the only thing I can think of), and with
`w' procmail recovered the old text. What does a verbose logfile say?
I'm stuck.
By something sharp and pointy? Don't bleed on the carpet.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail