[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PROCMAIL - help, please!



Message: 3
Organization: The Great Speckled Bird
Date: Thu, 14 Sep 2000 15:46:01 -0400
To: cobalt-users@xxxxxxxxxxxxxxx
From: cobalt@xxxxxxxxxxx
Subject: [cobalt-users] PROCMAIL - help, please!
Reply-To: cobalt-users@xxxxxxxxxxxxxxx

Will ANYONE here please help us get procmail working on a cobalt RAQ2?

We've conferred with everyone that we could find, including the author of
the software, but no one can tell us why the system seems to ignore
.forward AND .procmailrc

Any help will be most sincerely appreciated.

--
ATLANTIS	http://thebird.org/atlantis

by Tom Sparks



I did get procmail working somewhat on a RaQ2 but it's pretty lame and certainly doesn't let me use the features of procmail. I needed a filter for my discussion forum software to enable reply-by-email.

This is what the original recipe was supposed to look like:


INCOMINGADDRESS=gamesboard
SCRIPT_PATH=/home/sites/site2/web/cgi-bin/discus/reply-email.cgi
PERL=/usr/bin/perl
SENDMAIL=/usr/sbin/sendmail
MAILDIR=$HOME/Mail
SHELL=/bin/sh
LINEBUF=4096
PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin:
VERBOSE=on
LOGFILE=$MAILDIR/procmail.log
DEFAULT=$HOME/Mail
# This recipe gets mail coming in to the above specified address and
# forwards it to the e-mail handler.

:0 # Start recipe
* ^TO.*$INCOMING_ADDRESS # Mail to your address
* !^X-Loopback-Stopper # Prevents looping messages
| $PERL $SCRIPT_PATH # Runs the Discus post handler


I just kept getting weird error messages in the log file. This is the recipe that worked:

INCOMINGADDRESS=gamesboard
SCRIPT_PATH=/home/sites/site2/web/cgi-bin/discus/reply-email.cgi
PERL=/usr/bin/perl
SENDMAIL=/usr/sbin/sendmail
MAILDIR=$HOME/Mail
SHELL=/bin/sh
LINEBUF=4096
PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin:
VERBOSE=on
LOGFILE=$MAILDIR/procmail.log
DEFAULT=$HOME/Mail
# This recipe gets mail coming in to the above specified address and
# forwards it to the e-mail handler.

:0 # Start recipe
|/usr/bin/perl /home/sites/site2/web/cgi-bin/discus/reply-email.cgi

Notice that this recipe doesn't differentiate at all. Everything is passed through to my discussion forum script (which, luckily for me, just rejects anything it doesn't like)

If you get it to work beyond what I did, please let me know! I need to do something else with procmail (I was just playing with yesterday, in fact).

Michelle
--

----|      TRANSCENA DESIGN  |----------------------------
Michelle A. Hoyle, VP Web Technologies, Canada
#801 T.D. Tower, Edmonton, Alberta, Canada  T5J 2Z1
N. America:  1-888-429-2363  |  UK:  020 7529 1465
International:  +1 780 429 2363
------------------|  internet design architects     |--------