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

From: Joel Beach <joelbeach_at_optushome.com.au_at_hypermail-project.org>
Date: 12 Mar 2001 07:55:12 EST
Message-Id: <20010312125254.SJS15800.mss.rdc2.nsw.optushome.com.au_at_kinslayer>


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_at_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_at_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_at_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_at_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_at_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.... Received on Mon 12 Mar 2001 04:28:16 PM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:52 PM GMT GMT