diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-03-06 16:39:03 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-03-06 16:41:57 -0800 |
commit | 02279e2abf5a28a4f983a720d3a33ed94a4e117b (patch) | |
tree | 94c30be985bae683a9ea9a61cec95d45ddcb3d2a /alot | |
parent | a182df6f3d850a07439646144e118c6992a197b2 (diff) |
db/utils: Update docstring for message_from_bytes
Diffstat (limited to 'alot')
-rw-r--r-- | alot/db/utils.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/alot/db/utils.py b/alot/db/utils.py index 32cf43cf..4f533306 100644 --- a/alot/db/utils.py +++ b/alot/db/utils.py @@ -277,8 +277,11 @@ def message_from_string(s): def message_from_bytes(bytestring): - """Read mail from given bytes string. Works like message_from_string, but - for bytes. + """Create a Message from bytes. + + Attempt to guess the encoding of the bytestring. + + :param bytes bytestring: an email message as raw bytes """ return message_from_file(io.StringIO(helper.try_decode(bytestring))) |