On 2012-10-09 09:47:08 -0400, Wietse Venema wrote: > Vincent Lefevre: > > Hi, > > > > With postfix 2.9.3-2~12.04.3 under Ubuntu: > > > > The header_checks(5) man page says: > > > > Note: message headers are examined one logical header at a time, > > even when a message header spans multiple lines. Body lines are > > always examined one line at a time. > > > > But after doing various tests on mime_header_checks, it appears > > that headers are examined one physical line at a time (instead > > of logical headers). > > If you think there is a bug, then you are supposed to provide the > evidence, instead of planting false rumors and spreading FUD.
Here's an example: The message "msg": ------------------------------------------------------------ >From a@b.c Tue Oct 9 16:16:44 2012 Date: Tue, 9 Oct 2012 16:16:40 +0200 From: a@b.c To: a@b.c Subject: test Message-ID: <20121009141640.gv4...@xvii.vinc17.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="J5MfuwkIyy7RmF4Q" Content-Disposition: inline Content-Transfer-Encoding: 8bit --J5MfuwkIyy7RmF4Q Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit test --J5MfuwkIyy7RmF4Q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=foo --J5MfuwkIyy7RmF4Q-- ------------------------------------------------------------ A mime_header_checks.pcre file: ------------------------------------------------------------ /^Content-Disposition:.*filename/ REJECT logical header /^\s*filename/ REJECT physical line ------------------------------------------------------------ Now, when I try with postmap: $ postmap -m -q - pcre:mime_header_checks.pcre < msg filename=foo REJECT physical line Note that if I add the -h option, I get nothing: $ postmap -m -h -q - pcre:mime_header_checks.pcre < msg -- 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)