summaryrefslogtreecommitdiff
path: root/alot/db/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/db/utils.py')
-rw-r--r--alot/db/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/db/utils.py b/alot/db/utils.py
index f57d62bd..39bd9007 100644
--- a/alot/db/utils.py
+++ b/alot/db/utils.py
@@ -403,11 +403,12 @@ def decode_header(header, normalize=False):
:type header: str
:param normalize: replace trailing spaces after newlines
:type normalize: bool
- :rtype: unicode
+ :rtype: str
"""
# If the value isn't ascii as RFC2822 prescribes,
# we just return the unicode bytestring as is
+ # XXX: this prbably isn't going to work in python 3
value = string_decode(header) # convert to unicode
try:
value = value.encode('ascii')