diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-19 16:07:14 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-19 16:07:14 -0400 |
commit | 06fce8dc2f382521421d06ae62c889ebfcf53367 (patch) | |
tree | 625f20a41c5e29adad1629a70c25b963d916f048 | |
parent | b45c5006dc8746f6dd22cdcc59be7f51084f4d6f (diff) | |
download | bugseverywhere-06fce8dc2f382521421d06ae62c889ebfcf53367.tar.gz |
Worked out some kinks in be-handle-mail's autocommit.
For example, it's helpful to actually run the autocommit command ;).
-rwxr-xr-x | interfaces/email/interactive/be-handle-mail | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/interfaces/email/interactive/be-handle-mail b/interfaces/email/interactive/be-handle-mail index 3ede690..590824a 100755 --- 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, |