On 2012-10-09 10:51:31 -0400, Wietse Venema wrote: > Vincent Lefevre: > > ------------------------------------------------------------ > > From a@b.c Tue Oct 9 16:16:44 2012 > > Date: Tue, 9 Oct 2012 16:16:40 +0200 > ... > > $ postmap -m -q - pcre:mime_header_checks.pcre < msg > > From SPACE is not a header line, according to RFC 5322, "Internet > Message Format". Therefore your experiment is invalid.
Do you mean that messages must completely follow RFC 5322, i.e. with each line ending with CRLF (not just LF)? Moreover since other tools (e.g. procmail) accept and/or generate messages starting with a "From " line, it would be better to output an error message if the message is regarded as invalid rather than failing silently. Anyway, even without the "From " line (which was actually my first test, but the message was too large as an example), I don't get the expected behavior: $ postmap -m -q - pcre:mime_header_checks.pcre < msg filename=foo REJECT physical line The postmap(1) man page is quite unclear: -m Enable MIME parsing with "-b" and "-h". I originally assumed that this meant that "-b" and "-h" were implied. Or does this mean that -m can be used only when "-b" or "-h" is present? But in this case, why don't I get an error message? -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)