You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Steve <ss...@lycos.com> on 2005/05/16 16:06:23 UTC

Detect size of bitmap

I keep getting emails that are sent in html and have a bmp that is about 94k
with the offending products in bmp form. Its extreemly hard to detect these
because I think its just a picture eg bmp not real words.

When I click on the html picture and save it, the bmp size is always about
94k. I would like to build some tests based on this. Can anyone show me how
to test for a bmp that is 94 to 95 K. I will check for some other common
things about the email to up the score but first I just want to see how to
check for size.

Thanks.




Re: Detect size of bitmap

Posted by Steve <ss...@lycos.com>.
"David Vel�squez Restrepo" <da...@conexcol.com> wrote in message
news:044b01c55a32$4e28d290$6e01a8c0@david...
> You can use "identify" command to obtain some info about an image.
>
> If you have linux (i hope you do), just type: identify [IMAGE_FILENAME]
> If you need the size of the file just type: ls -l [FILENAME]
>
> David A. Vel�squez R.
> Gerente Fundador
> Conexiones Colombianas (CONEXCOL)
> david@conexcol.com
> http://www.conexcol.com/ - http://www.sipo.cl
> Tel/Fax. (57)(4) 3122600
> Cel. (57)(300) 6533517
>
> Cra. 34 No. 7 - 157
> A.A. 12137 Medell�n, Ant. CO.
>
>
>
> ----- Original Message ----- 
> From: "Steve" <ss...@lycos.com>
> To: <us...@spamassassin.apache.org>
> Sent: Monday, May 16, 2005 9:06 AM
> Subject: Detect size of bitmap
>
>
> >I keep getting emails that are sent in html and have a bmp that is about
> >94k
> > with the offending products in bmp form. Its extreemly hard to detect
> > these
> > because I think its just a picture eg bmp not real words.
> >
> > When I click on the html picture and save it, the bmp size is always
about
> > 94k. I would like to build some tests based on this. Can anyone show me
> > how
> > to test for a bmp that is 94 to 95 K. I will check for some other common
> > things about the email to up the score but first I just want to see how
to
> > check for size.
> >
> > Thanks.

Unfortunetely this does not do it in Spamassassin. It appears there is no
way of doing it in SA.

Thanks.




Re: Detect size of bitmap

Posted by David Velásquez Restrepo <da...@conexcol.com>.
You can use "identify" command to obtain some info about an image.

If you have linux (i hope you do), just type: identify [IMAGE_FILENAME]
If you need the size of the file just type: ls -l [FILENAME]

David A. Velásquez R.
Gerente Fundador
Conexiones Colombianas (CONEXCOL)
david@conexcol.com
http://www.conexcol.com/ - http://www.sipo.cl
Tel/Fax. (57)(4) 3122600
Cel. (57)(300) 6533517

Cra. 34 No. 7 - 157
A.A. 12137 Medellín, Ant. CO.



----- Original Message ----- 
From: "Steve" <ss...@lycos.com>
To: <us...@spamassassin.apache.org>
Sent: Monday, May 16, 2005 9:06 AM
Subject: Detect size of bitmap


>I keep getting emails that are sent in html and have a bmp that is about 
>94k
> with the offending products in bmp form. Its extreemly hard to detect 
> these
> because I think its just a picture eg bmp not real words.
>
> When I click on the html picture and save it, the bmp size is always about
> 94k. I would like to build some tests based on this. Can anyone show me 
> how
> to test for a bmp that is 94 to 95 K. I will check for some other common
> things about the email to up the score but first I just want to see how to
> check for size.
>
> Thanks.
>
>
>
> 


Re: Detect size of bitmap

Posted by Matt Kettler <mk...@evi-inc.com>.
Steve wrote:
> I keep getting emails that are sent in html and have a bmp that is about 94k
> with the offending products in bmp form. Its extreemly hard to detect these
> because I think its just a picture eg bmp not real words.
> 
> When I click on the html picture and save it, the bmp size is always about
> 94k. I would like to build some tests based on this. Can anyone show me how
> to test for a bmp that is 94 to 95 K. I will check for some other common
> things about the email to up the score but first I just want to see how to
> check for size.
> 

I don't think there's any way to do that in SA, short of writing a plugin.

There's no part of the raw message which will tell you how long a particular
attachment is, so to do that you'd need some code which counts the bytes between
boundaries.