3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Help with maildrop sy...
FromSent OnAttachments
EndaMay 4, 2009 3:28 am 
EndaMay 4, 2009 3:43 am 
EndaMay 4, 2009 7:32 am 
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:Re: [maildropl] Help with maildrop syntaxActions...
From:Enda (en@codefoundry.com)
Date:May 4, 2009 7:32:02 am
List:net.sourceforge.lists.courier-maildrop

Hi Guys,

In the end, I deleted the buggy line and tried to test the rest of the script, and have eventually got it working. My mistakes are highlighted below in case anyone is interested.

# Extract the current Delivered-to: header from the mail DELTO=/Delivered-To:/:h

Two mistakes here, first you can't assign directly into a varibale from a pattern search, you run the search and then load the value of the MATCH variable, and second, pattern doesn't mean the pattern you are looking for, its actually an expression with its own syntax which must be got correct.

ULENGTH=length($DELTO)-$EXCESS

Arithmetic operations must have a space on either side of an operator, otherwise they are interpreted as strings.

All working now with those basic hurdles crossed.

------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf