diff options
Diffstat (limited to 'alot/db')
-rw-r--r-- | alot/db/utils.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/alot/db/utils.py b/alot/db/utils.py index 373f96b1..664aca5d 100644 --- a/alot/db/utils.py +++ b/alot/db/utils.py @@ -257,7 +257,7 @@ def extract_headers(mail, headers=None): return headertext -def extract_body(mail, types=None): +def extract_body(mail, types=None, field_key='copiousoutput'): """ returns a body text string for given mail. If types is `None`, `text/*` is used: @@ -301,8 +301,7 @@ def extract_body(mail, types=None): body_parts.append(string_sanitize(raw_payload)) else: # get mime handler - key = 'copiousoutput' - handler, entry = settings.mailcap_find_match(ctype, key=key) + handler, entry = settings.mailcap_find_match(ctype, key=field_key) tempfile_name = None stdin = None |