[Pymilter] Emulating another MimeDefang function

Stuart D. Gathman stuart at bmsi.com
Mon Nov 21 15:42:35 EST 2011


On Mon, 21 Nov 2011, Larry G. Wapnitsky wrote:

> Will try this.

If you were curious about the standard place for filenames (as opposed
the many places LookOut checks), look at the get_filename() method in
email.Message (python comes with source).  It looks first in the
Content-Disposition header field for the filename attribute (the "correct"
place), and secondly in the name attribute of Content-Type.

--
 	      Stuart D. Gathman <stuart at bmsi.com>
     Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.



More information about the Pymilter mailing list