diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-06-13 13:25:33 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-06-13 13:25:33 +0100 |
commit | 7a1ce51c3022337dd4b1f7ee25ff866f5be64ae1 (patch) | |
tree | 9ea13e496ef8d66d1cc072c2f506dd8971fdb3d0 /alot/db/utils.py | |
parent | 7cc2cd293096787c338c3a94b8507264271af1d3 (diff) | |
parent | 5469f2aa29d641e9dc0edb22e77066847c7ed17a (diff) |
Merge branch '0.3.1-feature-boolean-arguments'
Diffstat (limited to 'alot/db/utils.py')
-rw-r--r-- | alot/db/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/db/utils.py b/alot/db/utils.py index 42a298fb..5ff02c5d 100644 --- a/alot/db/utils.py +++ b/alot/db/utils.py @@ -2,7 +2,6 @@ import os import email import tempfile import re -import shlex from email.header import Header import email.charset as charset charset.add_charset('utf-8', charset.QP, charset.QP, 'utf-8') @@ -15,6 +14,7 @@ from alot.settings import settings from alot.helper import string_sanitize from alot.helper import string_decode from alot.helper import parse_mailcap_nametemplate +from alot.helper import split_commandstring def extract_headers(mail, headers=None): @@ -99,7 +99,7 @@ def extract_body(mail, types=None): filename=tmpfile.name, plist=parms) logging.debug('command: %s' % cmd) logging.debug('parms: %s' % str(parms)) - cmdlist = shlex.split(cmd.encode('utf-8', errors='ignore')) + cmdlist = split_commandstring(cmd) # call handler rendered_payload, errmsg, retval = helper.call_cmd(cmdlist) # remove tempfile |