From 5f3342e87b1ac613c5f5efe4c318c1cce9943fdd Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 27 Jun 2001 23:02:46 +0000 Subject: main(): Be sure to set the _plaintext message metadata key to inform the Switchboard that it should save the message as plain text and not as a pickle. --- scripts/mailowner | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/mailowner') diff --git a/scripts/mailowner b/scripts/mailowner index fb0550bea..af27ca26c 100755 --- a/scripts/mailowner +++ b/scripts/mailowner @@ -47,7 +47,8 @@ def main(): sys.exit(1) # Make sure the list exists if not Utils.list_exists(listname): - print >> sys.stderr, _('mailcmd script, list not found: %(listname)s') + print >> sys.stderr, _( + 'mailowner script, list not found: %(listname)s') sys.exit(1) # Immediately queue the message for the bounce/cmd qrunner to process. # The advantage to this approach is that messages should never get lost -- @@ -60,7 +61,8 @@ def main(): # processing while -owner messages do not. However, it's too expensive to # make this determination here, so we defer it to the CommandRunner. cmdq = get_switchboard(mm_cfg.CMDQUEUE_DIR) - cmdq.enqueue(sys.stdin.read(), listname=listname, toauthoritah=1) + cmdq.enqueue(sys.stdin.read(), listname=listname, toauthoritah=1, + _plaintext=1) -- cgit v1.2.3-70-g09d2