summaryrefslogtreecommitdiff
path: root/alot/helper.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-11-12 10:47:53 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2011-11-12 10:47:53 +0000
commite62c55f97baadd1e8088e1fe3b815f38814e9e4f (patch)
treeed64a2ac37018a265c8e80da3f71477b81c664ba /alot/helper.py
parente722d35fa12435f71e9d8bae37f403fb756505b5 (diff)
don't forget to pipe last line
Diffstat (limited to 'alot/helper.py')
-rw-r--r--alot/helper.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/alot/helper.py b/alot/helper.py
index 586a5b20..c79201ef 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -208,6 +208,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()
+ stdin = stdin + '\n'
if cmd[0] == '"' and cmd[-1] == '"':
cmd = cmd[1:-1]
args = shlex.split(cmd.encode('utf-8', errors='ignore'))