You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Jean-Paul Natola <jn...@familycareintl.org> on 2009/06/22 17:32:06 UTC

unclosed if error

Can someone help me out here

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)




Tia

j  


RE: unclosed if error

Posted by SM <sm...@resistor.net>.
At 12:20 22-06-2009, Jean-Paul Natola wrote:
>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)

Tar the jp.cf file and send it to me off-list.

Regards,
-sm 


RE: unclosed if error

Posted by Jean-Paul Natola <jn...@familycareintl.org>.
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)

Re: unclosed if error

Posted by SM <sm...@resistor.net>.
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.

See 
http://mail-archives.apache.org/mod_mbox/spamassassin-users/200906.mbox/%3CPine.LNX.4.64.0906020849430.10241@mercury.impsec.org%3E

Regards,
-sm