projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b45c500
)
Worked out some kinks in be-handle-mail's autocommit.
author
W. Trevor King
<wking@drexel.edu>
Sun, 19 Jul 2009 20:07:14 +0000
(16:07 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Sun, 19 Jul 2009 20:07:14 +0000
(16:07 -0400)
For example, it's helpful to actually run the autocommit command ;).
interfaces/email/interactive/be-handle-mail
patch
|
blob
|
history
diff --git
a/interfaces/email/interactive/be-handle-mail
b/interfaces/email/interactive/be-handle-mail
index 3ede690a6ca7f04758bfbe4ae875a1193c77c710..590824a7cc130f33a39482dfc3484de36c84c165 100755
(executable)
--- a/
interfaces/email/interactive/be-handle-mail
+++ b/
interfaces/email/interactive/be-handle-mail
@@
-451,7
+451,12
@@
class Message (object):
finally:
if AUTOCOMMIT == True:
tag,subject = self._split_subject()
- command = Command(self, "commit", [self.subject])
+ command = Command(self, "commit", [subject])
+ command.run()
+ if LOGFILE != None:
+ LOGFILE.write("Autocommit:\n%s\n\n" %
+ send_pgp_mime.flatten(command.response_msg(),
+ to_unicode=True))
def _begin_response(self):
tag,subject = self._split_subject()
response_header = [u"From: %s" % HANDLER_ADDRESS,