vimmaniac / ppymilter

Automatically exported from code.google.com/p/ppymilter
0 stars 0 forks source link

Trailing 0x00 in header values #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the OnHeader(cmd, key, val) method to receive headers.
2. Log the header value: logging.warn("Header value: %r", val)

What is the expected output? What do you see instead?
The value should be 'my subject', for example.
I see 'my subject\x00'.

What version of the product are you using? On what operating system?
I use Postfix 2.5.5-1.1 and ppymilter trunk (r37). I use them on Linux.

Original issue reported on code.google.com by fidlej on 26 Oct 2009 at 10:47