From 5bc5ce77a431cd700b0c75f29bf894f62caa575e Mon Sep 17 00:00:00 2001 From: klm Date: Mon, 30 Mar 1998 05:07:15 +0000 Subject: Using StampedLogger (to logs/error) for stderr, for debugging. Refined module doc string a bit. --- scripts/mailcmd | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'scripts/mailcmd') diff --git a/scripts/mailcmd b/scripts/mailcmd index edbb9e961..2e0751ee0 100755 --- a/scripts/mailcmd +++ b/scripts/mailcmd @@ -1,10 +1,11 @@ #! /usr/local/bin/python -"""Handle emailed request commands. - +"""Process emailed commands. Called by the wrapper, stdin is the mail message, and argv[1] is the name -of the target mailing list.""" +of the target mailing list. + +Errors are redirected to logs/errors.""" import sys @@ -13,9 +14,10 @@ sys.path.append('/home/mailman/mailman/modules') import maillist, mm_utils try: - sys.stderr = mm_utils.StampedLogger("error", label='scripts/mailcmd') -except IOError, reason: - pass # SOL on redirecting. + sys.stderr = mm_utils.StampedLogger("error", label = 'mailcmd', + manual_reprime=1) +except IOError: + pass # Oh well - SOL on redirect, errors show thru. # Only let one program run at once per list. -- cgit v1.2.3-70-g09d2