You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by BG Mahesh <bg...@gmail.com> on 2006/09/07 04:55:07 UTC

Re: Where to install imageinfo.pm?

On 8/25/06, Kenneth Porter <sh...@sewingwitch.com> wrote:
>
> --On Thursday, August 24, 2006 2:12 PM +0530 BG Mahesh <bgmahesh@gmail.com
> >
> wrote:
>
> > I am using SA-3.1.4. I am in the process of installing
> > http://www.rulesemporium.com/plugins.htm
> > Where do I install
> > ImageInfo.pm<http://www.rulesemporium.com/plugins/ImageInfo.pm>[which
> > directory]?
>
> On Fedora I put mine in /etc/mail/spamassassin/plugins, and added the path
> to the end of the load line in init.pre:
>
> loadplugin Mail::SpamAssassin::Plugin::ImageInfo
> /etc/mail/spamassassin/plugins/ImageInfo.pm
>
> (That may split across two lines in the mail. It should all be on one line
> in your file.)



The error I get for "spamassassin --lint" is,

[root@blr spamassassin]# spamassassin --lint
[11752] warn: plugin: failed to parse plugin
/etc/mail/spamassassin/plugins/ImageInfo.pm:
Global symbol "$c" requires explicit package name at
/etc/mail/spamassassin/plugins/ImageInfo.pm line 141.
[11752] warn: plugin: failed to create instance of plugin
Mail::SpamAssassin::Plugin::ImageInfo: Can't locate object method "new" via
package "Mail::SpamAssassin::Plugin::ImageInfo" at
/etc/mail/spamassassin/plugins/ImageInfo.pm line 103.

Line 141 reads,
dbg("imageinfo: gif image ".($part->{'name'} ? $part->{'name'} : '')." is
$height x $width pixels ($area pixels sq.), with $c
olor_table_size color table");

Line 103 reads,
  my $self = $class->SUPER::new($mailsaobject);

What could I be doing wrong?


-- 
--
B.G. Mahesh
http://www.greynium.com/
http://www.oneindia.in/
http://www.click.in/ - Free Indian Classifieds

Re: Where to install imageinfo.pm?

Posted by Gary V <mr...@hotmail.com>.
>>--On Thursday, August 24, 2006 2:12 PM +0530 BG Mahesh <bgmahesh@gmail.com
>> >
>>wrote:
>>
>> > I am using SA-3.1.4. I am in the process of installing
>> > http://www.rulesemporium.com/plugins.htm
>> > Where do I install
>> > ImageInfo.pm<http://www.rulesemporium.com/plugins/ImageInfo.pm>[which
>> > directory]?
>>
>>On Fedora I put mine in /etc/mail/spamassassin/plugins, and added the path
>>to the end of the load line in init.pre:
>>
>>loadplugin Mail::SpamAssassin::Plugin::ImageInfo
>>/etc/mail/spamassassin/plugins/ImageInfo.pm
>>
>>(That may split across two lines in the mail. It should all be on one line
>>in your file.)
>

>B.G. Mahesh

Locate SpamAssassin's plugin directory and place it there:
updatedb
locate /SpamAssassin/Plugin

Then you only need:
loadplugin Mail::SpamAssassin::Plugin::ImageInfo

_________________________________________________________________
Check the weather nationwide with MSN Search: Try it now!  
http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG