Looks like this fixes it: $ diff ./lib/Mail/SpamAssassin/HTML.pm /usr/share/perl5/Mail/SpamAssassin/HTML.pm 952a953,956 > # Handle 3 character color shorthand. > if (length($color) == 3) { > $color =~ s/(.)(.)(.)/$1$1$2$2$3$3/; > }
Opening a bug to apply it. On 02/17, dar...@chaosreigns.com wrote: > Confirmed. #999 is getting converted to #090909, when it should be > getting converted to #999999. (Threw a print statement into the top > of html_font_invisible().) > > On 02/17, dar...@chaosreigns.com wrote: > > You should open a bug. SpamAssassin attempts to catch these via > > html_font_invisible() in HTML.pm (should hit rule HTML_FONT_LOW_CONTRAST). > > My guess is that it's failing to handle the short form of color values > > (FFF instead of FFFFFF). Looks like they should be converted like 123 > > -> 112233. > > > > Report bugs here: https://issues.apache.org/SpamAssassin/ > > > > On 02/16, JP Kelly wrote: > > > I am getting a bunch of spam with white text on a white background. Any > > > ideas how to catch it? > > > Here is an example: > > > > > <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" > > > marginheight="0"> > > > > > <p style="color:#FFF; font-size:1px; width:600px;"> > > > > -- > > "Life is either a daring adventure or it is nothing at all." > > - Helen Keller > > http://www.ChaosReigns.com > > > > -- > "It is the first responsibility of every citizen to question authority." > - Benjamin Franklin > http://www.ChaosReigns.com > -- "I don't want to die... just yet... not while there's... women." - J. Matthew Root, 8/23/02 (http://www.jmrart.com/) http://www.ChaosReigns.com