Spam reporting script errors out after upgrade to 2010
Chris <[email protected]> Thu, 10 Dec 2009 20:53:56 -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
--
KeyID 0xE372A7DA98E6705C
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkshtEMACgkQ43Kn2pjmcFxpMgCeK407Cak5r3Y8QqEbWRv/gHzM gPkAn2+DjAOy+m6ofmOqJYSUp41SO1Fd =aBTY -----END PGP SIGNATURE-----