Filename in MultiFile
Oleg Broytmann
phd at phd.russ.ru
Mon Nov 6 06:30:39 EST 2000
On Sun, 5 Nov 2000, Miki Tebeka wrote:
> I'm decoding mail with MultiFile and mimetools.
> How can I know the name of the current attachment I'm decoding?
m = mimetools.Message(mf) # mf is an instance of MyltiFile
name = m.getparam("name")
if not name:
name = "outfile"
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list