summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-01-07 16:38:08 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-01-07 16:38:08 +0000
commitc392bbb9f9976eaad6db7a2feb8c02d2d06fc124 (patch)
tree1f842566a470dc32d23bef566d8dd3b02eb71a8f /alot
parent682964bfdbf15ba0929cb9cd09dc990457838b7d (diff)
print in background
hardcode Pipecommands background parameter to True for the subclass PrintCommand
Diffstat (limited to 'alot')
-rw-r--r--alot/VERSION2
-rw-r--r--alot/commands/thread.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/alot/VERSION b/alot/VERSION
index 94e998ed..d8d87a34 100644
--- a/alot/VERSION
+++ b/alot/VERSION
@@ -1 +1 @@
-0.2-260-gfa6f
+0.2-261-g6829
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index b889fb0e..32beb1e4 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -488,7 +488,6 @@ class PrintCommand(PipeCommand):
"""
# get print command
cmd = settings.config.get('general', 'print_cmd', fallback='')
- cmdlist = shlex.split(cmd.encode('utf-8', errors='ignore'))
# set up notification strings
if all:
@@ -502,7 +501,8 @@ class PrintCommand(PipeCommand):
noop_msg = 'no print command specified. Set "print_cmd" in the '\
'global section.'
- PipeCommand.__init__(self, cmdlist, all=all, separately=separately,
+ PipeCommand.__init__(self, cmd, all=all, separately=separately,
+ background=True,
format='raw' if raw else 'decoded',
noop_msg=noop_msg, confirm_msg=confirm_msg,
done_msg=ok_msg, **kwargs)