R
Roman Suzi
In Python2.3.4:
.... print i
....
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/email/Message.py",
line
304, in __getitem__
File "/usr/lib/python2.3/email/Message.py",
line
370, in get
AttributeError: 'int' object has no attribute 'lower'
However items() does work:
.... print i
....
('Date', '24 Aug 2004 16:06:01 +0400')
('From', 'Mail System Internal Data <[email protected]>')
('Subject', "DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA")
('Message-ID', '<[email protected]>')
('X-IMAP', '1095527634 0000000005')
('Status', 'RO')
I can probably guess why this happens ('cause multiple fields with the
same names are possible), but .items() is broken by this... It needn't
be!
Sincerely yours, Roman A.Suzi
.... print i
....
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/email/Message.py",
line
304, in __getitem__
File "/usr/lib/python2.3/email/Message.py",
line
370, in get
AttributeError: 'int' object has no attribute 'lower'
However items() does work:
.... print i
....
('Date', '24 Aug 2004 16:06:01 +0400')
('From', 'Mail System Internal Data <[email protected]>')
('Subject', "DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA")
('Message-ID', '<[email protected]>')
('X-IMAP', '1095527634 0000000005')
('Status', 'RO')
I can probably guess why this happens ('cause multiple fields with the
same names are possible), but .items() is broken by this... It needn't
be!
Sincerely yours, Roman A.Suzi