diff options
author | Antoine Amarilli <a3nm@a3nm.net> | 2011-11-06 21:26:08 +0100 |
---|---|---|
committer | Antoine Amarilli <a3nm@a3nm.net> | 2011-11-06 21:26:08 +0100 |
commit | 63d10835c3758d9be99fafa19a75a4bb6970731f (patch) | |
tree | e62bd83df60d8d82f1b6b6e0bcbfad083e11b5a7 /alot/helper.py | |
parent | fdc830645917453fdd64fc88a8a80e311e76bd3c (diff) |
add strip() before removing quotes for pipeto
Diffstat (limited to 'alot/helper.py')
-rw-r--r-- | alot/helper.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/alot/helper.py b/alot/helper.py index c43beba5..5a5fe4f0 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -207,6 +207,7 @@ def cmd_output(command_line): def pipe_to_command(cmd, stdin): # remove quotes which have been put around the whole command + cmd = cmd.strip() if cmd[0] == '"' and cmd[-1] == '"': cmd = cmd[1:-1] args = shlex.split(cmd.encode('utf-8', errors='ignore')) |