diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-11-06 20:29:10 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-11-06 20:29:10 +0000 |
commit | 30d8de60fff69a0572a6b17c5fe8c6342472fbea (patch) | |
tree | d9ff783eb4201f34ce19403f8b01f35487f990e1 /alot/helper.py | |
parent | 34e4e34cdf64e562332e2137ca7ebe4c9947522b (diff) | |
parent | fdc830645917453fdd64fc88a8a80e311e76bd3c (diff) |
Merge branch 'master' into envelope
Diffstat (limited to 'alot/helper.py')
-rw-r--r-- | alot/helper.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/alot/helper.py b/alot/helper.py index 5c0178c0..da80d02d 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -206,6 +206,9 @@ def cmd_output(command_line): def pipe_to_command(cmd, stdin): + # remove quotes which have been put around the whole command + if cmd[0] == '"' and cmd[-1] == '"': + cmd = cmd[1:-1] args = shlex.split(cmd.encode('utf-8', errors='ignore')) try: proc = subprocess.Popen(args, stdin=subprocess.PIPE, |