Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33374
| From | Dieter Maurer <dieter@handshake.de> |
|---|---|
| Subject | Re: Getting "empty" attachment with smtplib |
| Date | 2012-11-15 08:37 +0100 |
| References | <oSQos.17607$h94.1407@newsfe02.iad> <aZQos.6321$UE.1674@newsfe30.iad> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3712.1352965056.27098.python-list@python.org> (permalink) |
Tobiah <toby@tobiah.org> writes: > I just found out that the attachment works fine > when I read the mail from the gmail website. Thunderbird > complains that the attachment is empty. The MIME standard (a set of RFCs) specifies how valid messages with attachments should look like. Fetch the mail (unprocessed if possible) and look at its structure. If it is conformant to the MIME standard, then "Thunderbird" made a mistake; otherwise, something went wrong with the message construction. I can already say that "smtplib" is not to blame. It is (mostly) unconcerned with the internal structure of the message -- and by itself will not empty attachments.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Getting "empty" attachment with smtplib Tobiah <toby@tobiah.org> - 2012-11-14 09:51 -0800
Re: Getting "empty" attachment with smtplib Tobiah <toby@tobiah.org> - 2012-11-14 09:58 -0800
Re: Getting "empty" attachment with smtplib Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-15 04:54 +0000
Re: Getting "empty" attachment with smtplib Dieter Maurer <dieter@handshake.de> - 2012-11-15 08:37 +0100
Re: Getting "empty" attachment with smtplib Tobiah <toby@tobiah.org> - 2012-11-15 09:26 -0800
csiph-web