[Mimedefang] mimedefang/SA inserting blank header lines
Ole Craig
olc at cs.umass.edu
Tue Nov 19 15:11:01 EST 2002
On 11/18/02 at 23:37, 'twas brillig and Barry Byrne scrobe:
> Don't know if this is the exact problem, but I tidy up the report before
> inserting it into a header:
>
> my $fixed_report = $report;
> $fixed_report =~ s/\n+\z//g; # fix for multiline header
> $fixed_report =~ s/\n/\n\t/g; # fix for multiline header
> action_add_header("X-Spam-Report","$fixed_report");
>
> - Barry
>
> -----Original Message-----
>> I'm having a very occasional problem with sendmail/md/sa
>> inserting lines consisting of one blankspace char into the headers of
>> an email; such messages are rejected occasionally by certain servers
>> on the basis that they may cause outlook to drop its trousers[1],
>> muttering something about a "blank folding" vulnerability.
>>
>> These lines seem to occur after the X-Spam-Report: lines, just
>> before X-Scanned-By. An example (with mangled addresses to protect my
>> users and their correspondents) can be seen at
Barry -
Thanks, that did the trick.
David -
You may want to consider incorporating this into the SA filter
example.
Ole
--
Ole Craig * UNIX, linux, SMTP-ninja; news, web; SGI martyr * CS Computing
Facility, UMass * <www.cs.umass.edu/~olc/pgppubkey.txt> for public key
More information about the MIMEDefang
mailing list