Spam reporting script errors out after upgrade to 2010
Chris <[email protected]> Fri, 11 Dec 2009 06:22:01 -0600
| Newsgroups | gmane.linux.mandrake.newbie |
|---|---|
| Message-ID | <[email protected]> |
The subject pretty much says it all, I run a script, not written by me,
that will take spam from a maildir folder and report it to the various
abuse addresses that are parsed from the senders IP address. Since
upgrading to 2010 the script has quit working with an error of:
/usr/local/bin/reportSpam: line 1020: syntax error near unexpected token
`('
/usr/local/bin/reportSpam: line 1020: ` SUBJECT="$BASE_SUBJECT
(${SPAM_IP}) $ORIGINAL_SUBJECT"'
line 1020 in the script is:
SUBJECT="$BASE_SUBJECT (${SPAM_IP}) $ORIGINAL_SUBJECT"
I know very little about scripts. Tried removing the parens to which
just caused another error. The script ran fine under 2009 and 2009.1
which I believe had bash V3x installed. Now that 2010 is using 4.0.33(2)
of bash could that be the problem? The script is only 35k so if anyone
would like a copy to see if they can help me I'd be glad to send it,
I've also posted it at pastebin. See the below link.
http://bash.pastebin.com/m582fef9c
any ideas/help/advice would be appreciated.
Chris
Note - this post has not made it in 10 hrs to the list so I'm resending it.
--
KeyID 0xE372A7DA98E6705C
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAksiOWkACgkQ43Kn2pjmcFxVLwCeP/+D0EdczQKnl6CfQENd7wRy S2kAmwXtY9NRQAJAWoHZ2GPA18RS1x8a =BDEv -----END PGP SIGNATURE-----