aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces/email/interactive/be-handle-mail
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-18 10:45:13 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-18 10:45:13 -0400
commit9952f26c3f63ff6525e0bd3e6392dea8600f3ae0 (patch)
tree7e972aebdf4c20a2c9a99c797106dce6713aa5df /interfaces/email/interactive/be-handle-mail
parenta60f92d11d1a3ee7d25bd166c5b261ef279fb3df (diff)
downloadbugseverywhere-9952f26c3f63ff6525e0bd3e6392dea8600f3ae0.tar.gz
In be-handle-mail, give new bug summary via command line.
Fixes incorrect implementation of _comment_ bodies via stdin in my wking@drexel.edu-20090718143517-mkd6toxmcoij3qwk commit.
Diffstat (limited to 'interfaces/email/interactive/be-handle-mail')
-rwxr-xr-xinterfaces/email/interactive/be-handle-mail5
1 files changed, 3 insertions, 2 deletions
diff --git a/interfaces/email/interactive/be-handle-mail b/interfaces/email/interactive/be-handle-mail
index c3769be..cb31f1c 100755
--- a/interfaces/email/interactive/be-handle-mail
+++ b/interfaces/email/interactive/be-handle-mail
@@ -137,6 +137,7 @@ def run_message(msg_text):
if "--reporter" not in args and "-r" not in args:
command_args = ["--reporter", info["author_addr"]]+command_args
body = body.strip().split("\n", 1)[0] # only take first line
+ command_args.append(body)
elif command == "comment":
if "--author" not in args and "-a" not in args:
command_args = ["--author", info["author_addr"]] + command_args
@@ -144,8 +145,8 @@ def run_message(msg_text):
command_args = ["--content-type", mime_type] + command_args
if "--alt-id" not in args:
command_args = ["--alt-id", msg["message-id"]] + command_args
- command_args.append("-")
- stdin = body
+ command_args.append("-")
+ stdin = body
info["command-args"] = command_args
# set stdin and catch stdout and stderr
new_stdin = StringIO.StringIO(stdin)