Viktor Dukhovni: > On Tue, Sep 16, 2014 at 07:14:51PM -0400, Wietse Venema wrote: > > > li...@rhsoft.net: > > > >>> Content-Type: application/octet-stream; > > > >>> name="test.exe" > > > > To test multiline headers, use "postmap -h -q" > > That's of course with "postmap -h -q -" when reading messages (or > message headers) from a file. When the header string is a command-line > argument: > > postmap -q "...header data..." pcre:/some/path.pcre > > the "-h" option is not needed and not available.
Multi-line arguments have resulted in privilege escalation with Sendmail. I'm not fond of multi-line command-line arguments, and consider it sloppiness that postmap allows them. To simulate multiline input, one can feed into stdin. printf whatever | postmap -q - ... Wietse