procmail
[Top] [All Lists]

RE: Mail Forwarding Snags...

1996-09-28 14:41:12
Stan, Sean, et al, pardon my Unix ignorance.
Great help so far.  One last hurdle and I'm done...

Script so far...
PATH=/bin:/usr/bin:/usr/local/bin
VERBOSE=OFF
PMDIR=/www02/web/ilvcom/.procmail
MAILDIR=$PMDIR
DEFAULT=$MAILDIR/mbox
LOGFILE=$PMDIR/log
#
#Search for unique messages only
#Dis-allow duplicates within an 8k cache of msgid's
#Lifted from procmailex
:0 Wh: msgid.lock
| formail -D 8192 msgid.cache
#
#Store new message in backup directory (Safety Net)
#Maintain last 32 messages
#Lifted from procmailex
:0 c
backup
:0 ic
|cd backup && rm -f dummy `ls -t msg.* | sed -e 1,32d`
#Forward everything to me, just in case
:0 c
! crjones(_at_)wizard(_dot_)com
#
DELIVERED=NO
#
:0 c
* ^TOcharley
{
 :0 c
 ! crjones(_at_)wizard(_dot_)com
 DELIVERED=YES
}
#
:0 c
* ^TOoldjim
{
 :0 c
 ! oldjim(_at_)cris(_dot_)com
 DELIVERED=YES
}:0 c
#
* ^TObob
{
 :0 c
 ! crjones(_at_)wizard(_dot_)com
 DELIVERED=YES
}
#
#This is the fall through block
#Anything that got here has not been delivered
:0
* DELIVERED.*NO
! crjones(_at_)wizard(_dot_)com


Ok, so, I think I have the duplicate messages filtered out, but am having 
trouble setting a variable and then comparing. I note that in the docs:

variablename ??
Math the remainder against the value of this environmental variable (this 
cannot be a pseudo variable).  Special cases are B, H, HB, and BH which merely 
override the default header/body seach area defined for this recipe.

HELP!
"Your technology frightens and confuses me."

1) Ok, so I probably don't have the right syntax to set the env variable.  
Problem is, what actual env variable can I use?  I don't have much control over 
running procmail, I don't have a .forward file to mess around with...(procmail 
called by default) and no telnet access to monkey around in the server.  (Just 
ftp, it's a web/email server only)

2) How do I finally compare this variable once I get it?  Not even close huh?  
Well, it was a good guess...

Thanks all for your help!

CRJ


<Prev in Thread] Current Thread [Next in Thread>