Message603
Attachments whose names are specified as part of the
Content-Disposition header do not get parsed correctly.
The 'disp' return value of part.getheader is a str,
not something which
you can call getparam on.
e.g.
An unexpected error occurred during the processing
of your message. The tracker administrator is being
notified.
---- traceback of failure ----
Traceback (most recent call last):
File
"/var/tmp/r/lib/python2.2/site-packages/roundup/mailgw.py",
line 252, in handle_Message
return self.handle_message(message)
File
"/var/tmp/r/lib/python2.2/site-packages/roundup/mailgw.py",
line 760, in handle_message
name = disp.getparam('filename')
AttributeError: 'str' object has no attribute 'getparam'
The headers generated (in this case, by mutt), it looks
like:
Content-Type: multipart/mixed; boundary="bCsyhTFzCvuiizWE"
Content-Disposition: inline
--bCsyhTFzCvuiizWE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
test attachment binary
--bCsyhTFzCvuiizWE
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="main.dvi"
Content-Transfer-Encoding: base64
xxxxxx |
|
Date |
User |
Action |
Args |
2009-02-03 14:20:12 | admin | link | issue675116 messages |
2009-02-03 14:20:12 | admin | create | |
|