diff options
Diffstat (limited to 'Lib/dos-8x3/mimetool.py')
-rwxr-xr-x | Lib/dos-8x3/mimetool.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/dos-8x3/mimetool.py b/Lib/dos-8x3/mimetool.py index baf9379..eadc11a 100755 --- a/Lib/dos-8x3/mimetool.py +++ b/Lib/dos-8x3/mimetool.py @@ -67,6 +67,14 @@ class Message(rfc822.Message): return rfc822.unquote(p[n:]) return None + def getparamnames(self): + result = [] + for p in self.plist: + i = string.find(p, '=') + if i >= 0: + result.append(string.lower(p[:i])) + return result + def getencoding(self): if self.encodingheader == None: return '7bit' |