def getdate(self, name):
try:<EOL><INDENT>data = self[name]<EOL><DEDENT>except KeyError:<EOL><INDENT>return None<EOL><DEDENT>return parsedate(data)<EOL>
Retrieve a date field from a header.

        Retrieves a date field from the named header, returning a tuple
        compatible with time.mktime().