On Sun, Nov 08, 2015 at 07:07:25PM +1300, Peter wrote: > On 11/08/2015 06:20 PM, Viktor Dukhovni wrote: > > Just be aware that headers potentially contain embedded new-lines, > > and can be up to 100k bytes (header_size_limit) long. Test your > > SQL engine to make sure it supports queries with string literals > > that long. > > Thanks for the heads up, the mysql shell certainly seem to barf on it > (and badly, it looks like it attempts to overrun the buffer), but I > think it's just the shell and not the engine itself, I'll have to find > another way to test the engine, possibly with a bit of perl and DBI.
No need, just use "postmap -q". You can also ask postmap to read multi-line message headers from a message file. See the postmap(1) manpage for details of the "-h", "-m" (and "-b") options. -- Viktor.