Can't run hypermail from within a .procmailrc (just bombs out with syntax errors)

---------

From: Joel Beach (joelbeach@optushome.com.au)
Date: Mon Mar 12 2001 - 06:55:12 CST


Hi....

I'm actually having a problem running hypermail from within a .procmailrc. This
is my .procmailrc

############################################################################

VERBOSE=yes

MAILDIR=$HOME/Msgs

PMDIR=$HOME/Procmail

LOGFILE=$PMDIR/log
HOME=/home/stude/j/jtbeach

:0
* ^Subject:[ ]+\[proj\]
{
        :0c:
        proj2

        :0c
        ! joelbeach@optushome.com.au

        :0:
        | $HOME/hypermail/bin/hypermail -i -u -d $HOME/www_public/mail -l "340
Project List"
}

###########################################################################

If, instead of this setup, I save the message to a new file and then pipe that
into hypermail using

cat folder | $HOME/hypermail/bin/hypermail -i -u -d $HOME/www_public/mail -l
"340 Project List"

it works fine and produces the update HTML pages.

However, when I try to run it from within the above .procmailrc, I get the
following errors in the log

################################################################################

procmail: Assigning "HOME=/home/stude/j/jtbeach"
procmail: Match on "^Subject:[ ]+\[proj\]"
procmail: Locking "proj2.lock"
procmail: Assigning "LASTFOLDER=proj2"
procmail: Opening "proj2"
procmail: Unlocking "proj2.lock"
procmail: Assigning "LASTFOLDER=/usr/lib/sendmail -oi
joelbeach@optushome.com.au"
procmail: Couldn't determine implicit lockfile from
"/home/stude/j/jtbeach/hypermail/bin/hypermail"
procmail: Locking ".lock"
procmail: Executing "/usr/lib/sendmail,-oi,joelbeach@optushome.com.au"
procmail: [12662] Mon Mar 12 23:45:26 2001
procmail: Executing
"/home/stude/j/jtbeach/hypermail/bin/hypermail,-i,-u,-d,/home/stude/j/jtbeach/w
ww_public/mail,-l,340 Project List"
/home/stude/j/jtbeach/hypermail/bin/hypermail: syntax error at line 1: `('
unexpected
procmail: [12662] Mon Mar 12 23:45:26 2001
procmail: Non-zero exitcode (2) from
"/home/stude/j/jtbeach/hypermail/bin/hypermail"
procmail: Assigning "LASTFOLDER=/home/stude/j/jtbeach/hypermail/bin/hypermail
-i -u -d /home/stude/j/jtbeach/www_public/mail -l 340 Project List"
procmail: Unlocking ".lock"
procmail: Locking "/var/spool/mail/jtbeach.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/jtbeach"
procmail: Opening "/var/spool/mail/jtbeach"
procmail: Unlocking "/var/spool/mail/jtbeach.lock"
>From jtbeach@students.cs.mu.OZ.AU Mon Mar 12 23:45:25 2001
 Subject: [proj] Huh!!!!
  Folder: /var/spool/mail/jtbeach 895
procmail: Notified comsat: "jtbeach@2384:/var/spool/mail/jtbeach"

####################################################################################

Anyone have any ideas?

Thanks,

Joel

P.S Please CC me as I currently don't subscribe to the list....


---------

This archive was generated by hypermail 2.1.5.