diff roundup/mailgw.py @ 2364:dfce8454848d

fix comment
author Richard Jones <richard@users.sourceforge.net>
date Tue, 25 May 2004 00:43:01 +0000
parents 27ba128ab567
children 58848e3b6bb8
line wrap: on
line diff
--- a/roundup/mailgw.py	Sun May 23 23:24:47 2004 +0000
+++ b/roundup/mailgw.py	Tue May 25 00:43:01 2004 +0000
@@ -74,7 +74,7 @@
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception. 
 
-$Id: mailgw.py,v 1.149 2004-04-20 22:01:12 richard Exp $
+$Id: mailgw.py,v 1.150 2004-05-25 00:43:01 richard Exp $
 """
 __docformat__ = 'restructuredtext'
 
@@ -240,7 +240,12 @@
     # General multipart handling:
     #   Take the first text/plain part, anything else is considered an 
     #   attachment.
-    # multipart/mixed: multiple "unrelated" parts.
+    # multipart/mixed:
+    #   Multiple "unrelated" parts.
+    # multipart/Alternative (rfc 1521):
+    #   Like multipart/mixed, except that we'd only want one of the
+    #   alternatives. Generally a top-level part from MUAs sending HTML
+    #   mail - there will be a text/plain version.
     # multipart/signed (rfc 1847): 
     #   The control information is carried in the second of the two 
     #   required body parts.
@@ -251,12 +256,9 @@
     #   ACTION: Not handleable as the content is encrypted.
     # multipart/related (rfc 1872, 2112, 2387):
     #   The Multipart/Related content-type addresses the MIME
-    #   representation of compound objects.
-    #   ACTION: Default. If we are lucky there is a text/plain.
-    #   TODO: One should use the start part and look for an Alternative
-    #   that is text/plain.
-    # multipart/Alternative (rfc 1872, 1892):
-    #   only in "related" ?
+    #   representation of compound objects, usually HTML mail with embedded
+    #   images. Usually appears as an alternative.
+    #   ACTION: Default, if we must.
     # multipart/report (rfc 1892):
     #   e.g. mail system delivery status reports.
     #   ACTION: Default. Could be ignored or used for Delivery Notification 

Roundup Issue Tracker: http://roundup-tracker.org/