"""
-import os
from base64 import b64decode
-import re
-import logging
from email.utils import parsedate_to_datetime
from email.parser import BytesParser
from email import policy
-from . import arnied_wrapper
-
# outsourced source, import required for compatiblity
from .imap_mailbox import ImapMailbox # pylint: disable=unused-import
from .mail_validator import * # pylint: disable=unused-import
* inbox --> (the empty string)
Would like to use a general modified utf-7-encoder/decoder but python has
- non built-in (see https://bugs.python.org/issue5305) and an extra lib like
+ none builtin (see https://bugs.python.org/issue5305) and an extra lib like
https://bitbucket.org/mjs0/imapclient/ would be overkill. After all, we
control the input to this function via params and this is enough umlaut-
testing I think...
Only for ascii filenames: also unwraps file names if they are line-wrapped.
But note that this may remove too much whitespace from the filename if
- line-wrapping happend in the same position as the filename's whitespace.
+ line-wrapping happened in the same position as the filename's whitespace.
To get unwrapped version, set param `do_unwrap` to `False`.
See also: https://en.wikipedia.org/wiki/MIME#Encoded-Word