Message133169
Not so fast ... I may have done this wrong, but I get:
print(Header(hdrin,maxlinelen=78))
Received: from mailout00.controlledmail.com (mailout00.controlledmail.com [72.81.252.19]) by mailwash7.pair.com (Postfix) with ESMTP id 16BB5BAD5 for <bcc@kitterman.com>; Sun, 13 Mar 2011 23:46:05 -0400 (EDT)
all in one line with python3.2, so maxlinelen doesn't appear to do anything. With python2.7 it seems to when invoked that way:
Python 2.7.1+ (r271:86832, Mar 24 2011, 00:39:14)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from email.header import Header
>>> hdrin = 'Received: from mailout00.controlledmail.com (mailout00.controlledmail.com [72.81.252.19]) by mailwash7.pair.com (Postfix) with ESMTP id 16BB5BAD5 for <bcc@kitterman.com>; Sun, 13 Mar 2011 23:46:05 -0400 (EDT)'
>>> print(Header(hdrin))
Received: from mailout00.controlledmail.com (mailout00.controlledmail.com
[72.81.252.19]) by mailwash7.pair.com (Postfix) with ESMTP id 16BB5BAD5 for
<bcc@kitterman.com>; Sun, 13 Mar 2011 23:46:05 -0400 (EDT)
>>> print(Header(hdrin, maxlinelen=30))
Received: from
mailout00.controlledmail.com
(mailout00.controlledmail.com
[72.81.252.19]) by
mailwash7.pair.com (Postfix)
with ESMTP id 16BB5BAD5 for
<bcc@kitterman.com>;
Sun, 13 Mar 2011 23:46:05
-0400 (EDT) |
|
Date |
User |
Action |
Args |
2011-04-06 21:21:47 | kitterma | set | recipients:
+ kitterma, barry, r.david.murray |
2011-04-06 21:21:47 | kitterma | set | messageid: <1302124907.09.0.0511352362153.issue11492@psf.upfronthosting.co.za> |
2011-04-06 21:21:46 | kitterma | link | issue11492 messages |
2011-04-06 21:21:46 | kitterma | create | |
|