diff options
Diffstat (limited to 'alot/db/utils.py')
-rw-r--r-- | alot/db/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/db/utils.py b/alot/db/utils.py index 62a7b3cf..5acbb017 100644 --- a/alot/db/utils.py +++ b/alot/db/utils.py @@ -71,7 +71,7 @@ def add_signature_headers(mail, sigs, error_msg): ) -def get_params(mail, failobj=list(), header='content-type', unquote=True): +def get_params(mail, failobj=None, header='content-type', unquote=True): '''Get Content-Type parameters as dict. RFC 2045 specifies that parameter names are case-insensitive, so @@ -83,6 +83,7 @@ def get_params(mail, failobj=list(), header='content-type', unquote=True): :param unquote: unquote the values :returns: a `dict` containing the parameters ''' + failobj = failobj or [] return {k.lower(): v for k, v in mail.get_params(failobj, header, unquote)} |