You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2006/11/07 03:27:24 UTC

[Bug 5170] New: test for html-attached-image (CID: URL)

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5170

           Summary: test for html-attached-image (CID: URL)
           Product: Spamassassin
           Version: 3.1.7
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Rules (Eval Tests)
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: advax@triumf.ca


Recent spam has an attached GIF referred to by an attachment URL, i.e.
<img src="cid:xxxxx">

This tries to tag just having that kind of image.

sub html_attached_image {
  my ($self, $opts) = @_;
  my $now = localtime ;
  while(my($uri, $info) = each %{ $self->get_uri_detail_list() }) {
    if (defined $info->{types}->{img} and $uri =~ /^cid:/i) {
      return 1 ;
    }
  }
  return 0 ;
}


It requires the following in PerMsgStatus.pm to pick up CID URLs:
my $schemeRE = qr/(?:https?|ftp|mailto|javascript|filei|cid)/i;



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5170] test for html-attached-image (CID: URL)

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5170





------- Additional Comments From felicity@apache.org  2006-11-06 18:33 -------
We already have a rule for this, though it looks at all URIs and not just IMG tags:

 16.856  20.0630   0.3170    0.984   0.77    1.00  __TVD_INT_CID

so it works generally well in the nightly runs, but referencing attached
graphics is perfectly fine for most mails, fyi.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5170] test for html-attached-image (CID: URL)

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5170


felicity@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From felicity@apache.org  2006-12-04 11:43 -------
referencing attached images isn't really a good spamsign in and of itself, so
I'm closing this as wontfix.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.