2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Setting variables inside ...
FromSent OnAttachments
jam...@swcp.comJul 8, 2002 4:24 pm 
jam...@swcp.comJul 8, 2002 4:35 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Setting variables inside an ifActions...
From:jam...@swcp.com (jam@swcp.com)
Date:Jul 8, 2002 4:24:39 pm
List:net.sourceforge.lists.courier-maildrop

Hello I'm running maildrop as our MDA in sendmail 8.12.3. I wanted to set a variable then do something at the end of my ruleset based on what my SPAMSCORE variable contained.

DEFAULT="/home/someuser/Mail/trash" SPAMSCORE=0

if(/^Subject: Test/) { SPAMSCORE=1 }

if($SPAMSCORE == 1) { to "$DEFAULT" }

Should this work? If so is my syntax correct?

James