Mailing List Archive

strange warning and spaces
The following message, with a space (ascii 0x20) after "8bit" string
produce a warning :

---
Return-Path: <>
Content-Transfer-Encoding: 8bit

...
___

% clamscan --mbox test5.mail
LibClamAV Warning: Unknown encoding type "8bit "

Note that, according RFC822 (3.4.2), spaces may be freely inserted
between symbols, so this encoding should be recognised.

The message bellow, without space after ":", but with still space
after "8bit" does not produce any warning.

---
Return-Path: <>
Content-Transfer-Encoding:8bit

...
___

% clamscan --mbox test5b.mail


Not sure this could be exploitable to do anything.
Is the mime header skipped if the ":" is not followed by a " " ?
After a look in the source, I havn't be able to understrand the reason
of the difference.