Skip to content

Commit 24cc8b4

Browse files
author
Richard Jones
committed
fix comment
1 parent 57b1108 commit 24cc8b4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

roundup/mailgw.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class node. Any parts of other types are each stored in separate files
7474
an exception, the original message is bounced back to the sender with the
7575
explanatory message given in the exception.
7676
77-
$Id: mailgw.py,v 1.149 2004-04-20 22:01:12 richard Exp $
77+
$Id: mailgw.py,v 1.150 2004-05-25 00:43:01 richard Exp $
7878
"""
7979
__docformat__ = 'restructuredtext'
8080

@@ -240,7 +240,12 @@ def getbody(self):
240240
# General multipart handling:
241241
# Take the first text/plain part, anything else is considered an
242242
# attachment.
243-
# multipart/mixed: multiple "unrelated" parts.
243+
# multipart/mixed:
244+
# Multiple "unrelated" parts.
245+
# multipart/Alternative (rfc 1521):
246+
# Like multipart/mixed, except that we'd only want one of the
247+
# alternatives. Generally a top-level part from MUAs sending HTML
248+
# mail - there will be a text/plain version.
244249
# multipart/signed (rfc 1847):
245250
# The control information is carried in the second of the two
246251
# required body parts.
@@ -251,12 +256,9 @@ def getbody(self):
251256
# ACTION: Not handleable as the content is encrypted.
252257
# multipart/related (rfc 1872, 2112, 2387):
253258
# The Multipart/Related content-type addresses the MIME
254-
# representation of compound objects.
255-
# ACTION: Default. If we are lucky there is a text/plain.
256-
# TODO: One should use the start part and look for an Alternative
257-
# that is text/plain.
258-
# multipart/Alternative (rfc 1872, 1892):
259-
# only in "related" ?
259+
# representation of compound objects, usually HTML mail with embedded
260+
# images. Usually appears as an alternative.
261+
# ACTION: Default, if we must.
260262
# multipart/report (rfc 1892):
261263
# e.g. mail system delivery status reports.
262264
# ACTION: Default. Could be ignored or used for Delivery Notification

0 commit comments

Comments
 (0)