At 08:32 22-06-2009, Jean-Paul Natola wrote:
>I copied this rule from someone here on the list
>
>header     __CTYPE_MULTIPART_ANY Content-Type =~ /multipart\/\w/i
>ifplugin Mail::SpamAssassin::Plugin::MIMEHeader
>mimeheader __ANY_TEXT_ATTACH     Content-Type =~ /text\/\w+/i
>meta     MIME_NO_TEXT (__CTYPE_MULTIPART_ANY && !__ANY_TEXT_ATTACH)
>score    MIME_NO_TEXT 2.00
>describe MIME_NO_TEXT No text body parts end if
>
>
>and this error comes up when I when I run lint
>
>[35143] warn: config: unclosed 'if' in
>/usr/local/etc/mail/spamassassin/jp.cf: if plugin
>(Mail::SpamAssassin::Plugin::MIMEHeader)

The "end if" should not be in the "describe" line.  Add "endif" after 
the describe line to close the "ifplugin" condition.
-----------------------------------------------------------
I have it like this now

header     __CTYPE_MULTIPART_ANY Content-Type =~ /multipart\/\w/i
ifplugin Mail::SpamAssassin::Plugin::MIMEHeader
mimeheader __ANY_TEXT_ATTACH     Content-Type =~ /text\/\w+/i
meta     MIME_NO_TEXT (__CTYPE_MULTIPART_ANY && !__ANY_TEXT_ATTACH)
score    MIME_NO_TEXT 2.00
describe MIME_NO_TEXT No text body parts
endif

and this is the error

[39338] warn: config: unclosed 'if' in
/usr/local/etc/mail/spamassassin/jp.cf: if plugin
(Mail::SpamAssassin::Plugin::MIMEHeader)
[39338] warn: config: unclosed 'if' in
/usr/local/etc/mail/spamassassin/jp.cf: if plugin
(Mail::SpamAssassin::Plugin::MIMEHeader)

Reply via email to