emailutil.py updated docstrings

Argument added.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-30 18:21:00 +02:00
parent 2c0858f19b
commit 222cd235d6

View File

@ -22,6 +22,7 @@ from email.parser import Parser as MailParser
def get_message_date(content, header='Date'): def get_message_date(content, header='Date'):
"""Parses mail and returns resulting timestamp. """Parses mail and returns resulting timestamp.
:param content: Mail content
:param header: the header to extract date from; :param header: the header to extract date from;
:returns: timestamp or `None` in the case of failure. :returns: timestamp or `None` in the case of failure.
""" """