summaryrefslogtreecommitdiff
path: root/alot/helper.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-09-01 16:38:19 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-09-03 22:14:09 +0100
commitcabdf4c2d1b9c8dbc49b4064335ca1e811641d4f (patch)
treee7b62c7342cdc1a5de6a55988c8ac39c28189ce5 /alot/helper.py
parentbbde53b93981868c66949a8b6043b3087adf03cb (diff)
fix issue with shlex removing quotes
Diffstat (limited to 'alot/helper.py')
-rw-r--r--alot/helper.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/helper.py b/alot/helper.py
index ad605acb..a8327145 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -28,6 +28,8 @@ def split_commandline(s, comments=False, posix=True):
"""
splits semi-colon separated commandlines
"""
+ # shlex seems to remove unescaped quotes
+ s = s.replace('\'','\\\'')
# encode s to utf-8 for shlex
if isinstance(s, unicode):
s = s.encode('utf-8')