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