diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-18 11:10:27 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-18 11:10:27 -0400 |
commit | b8d8a9c47005f010a34725faa49d5a6c6e10dac5 (patch) | |
tree | ed36c44bd44ef6818922ac6d451dd288c82e1ae0 /interfaces/email/interactive/be-handle-mail | |
parent | 70c8a070bfa520d72f0a5b487ca3bb2574d6de1e (diff) | |
download | bugseverywhere-b8d8a9c47005f010a34725faa49d5a6c6e10dac5.tar.gz |
Normalized whitespace in be-handle-mail and send_pgp_mime.py.
Also removed "commit after every message" from be-handle-mail,
because
a) not implemented yet
b) don't want to commit spam, since we'd have to find a way to
remove it later.
Suggested future workflow:
* "bzr diff" to poll for activity, blank output = no activity.
* on activity:
1) look at changes
2) remove whatever
3) commit email-interface repo.
4) merge changes into your private repo
* on private repo changes:
* if activity in email-interface repo:
1) deal with email activity as above
* push your private repo onto the email-interface repo
(and update the email repos' working tree, if required)
Diffstat (limited to 'interfaces/email/interactive/be-handle-mail')
-rwxr-xr-x | interfaces/email/interactive/be-handle-mail | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/interfaces/email/interactive/be-handle-mail b/interfaces/email/interactive/be-handle-mail index e511a0b..48a1aad 100755 --- a/interfaces/email/interactive/be-handle-mail +++ b/interfaces/email/interactive/be-handle-mail @@ -24,8 +24,6 @@ With the body of the email being used as the final argument for the commands "new" and "comment", and ignored otherwise. The options and arguments are split on whitespace, so don't use whitespace inside a single argument. - -Eventually we'll commit after every message. """ import codecs @@ -103,7 +101,7 @@ def run_message(msg_text): """ p=email.Parser.Parser() msg=p.parsestr(msg_text) - + info = {} author = send_pgp_mime.source_email(msg, return_realname=True) info["author_name"] = author[0] @@ -271,7 +269,7 @@ def main(): msg_text = sys.stdin.read() libbe.encoding.set_IO_stream_encodings(ENCODING) # _after_ reading message open_logfile(options.logfile) - try: + try: ret,out_text,err_text,info = run_message(msg_text) except InvalidEmail, e: ret,out_text,err_text,info = e.response() |