Hi all,
I'm having a problem with procmail recipe.
For some reason my filter is not executed properly. The space char in the
command line gets changed to a comma.
Commands such as 'cat' works as a filter, but mine gets munged.
Can anyone help?
Thanks in advance.
Anto.
Here are the relevant files:
~/.forward:
anto(_at_)inet(_dot_)co(_dot_)th
"|IFS=' '&&exec /usr/local/bin/procmail -f-||exit 75 #anto"
---
~/.procmailrc:
#Set on when debugging
VERBOSE=on
PATH=$HOME/scripts/projects:/usr/local/bin:/usr/bin
#Replace `mail' with your mail directory (Pine uses mail, Elm uses Mail)
MAILDIR=$HOME/mail
#Directory for storing procmail log and rc files
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
INCLUDERC=$PMDIR/rc.testing
---
~/procmail/rc.testing:
:0 c
* ^Subject.*SMS
| smscli 1234
:0:
* ^Subject.*test
IN.testing
---
~/.procmail/log:
procmail: Assigning "INCLUDERC=/usr2/home/staff/anto/.procmail/rc.testing"
procmail: Match on "^Subject.*SMS"
procmail: Assigning "LASTFOLDER=smscli 1234"
procmail: No match on "^Subject.*test"
procmail: Locking "/usr/spool/mail/anto.lock"
procmail: Executing "smscli,1234"
procmail: [28537] Fri Dec 22 11:09:49 1995
procmail: Assigning "LASTFOLDER=/usr/spool/mail/anto"
procmail: Opening "/usr/spool/mail/anto"
procmail: Acquiring kernel-lock
procmail: [28537] Fri Dec 22 11:09:50 1995
procmail: Unlocking "/usr/spool/mail/anto.lock"
From anto(_at_)inet(_dot_)co(_dot_)th Fri Dec 22 11:09:48 1995
Subject: smscli 21
Folder: /usr/spool/mail/anto 846
procmail: Notified comsat: "anto(_at_)5082:/usr/spool/mail/anto"
---
... and more info:
default shell: tcsh (6.05.00)
OS: DEC-Alpha OSF1
file permissions:
-rwxr-xr-x 1 anto staff 24576 Dec 21 14:54
/usr2/home/staff/anto/scripts/projects/smscli
Procmail version:
procmail v3.10 1994/10/31 written and created by Stephen R. van den Berg
berg(_at_)pool(_dot_)informatik(_dot_)rwth-aachen(_dot_)de
Submit questions/answers to the procmail-related mailinglist by sending to:
procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de
And of course, subscription and information requests for this list to:
procmail-request(_at_)informatik(_dot_)rwth-aachen(_dot_)de
Locking strategies: dotlocking, fcntl(), lockf(), flock()
Default rcfile: $HOME/.procmailrc
System mailbox: /usr/spool/mail/$LOGNAME