diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-04-18 21:10:01 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-04-18 21:10:01 +0300 |
commit | e0bb9149ff8e6d6c263e1bff225851dc5b66dc10 (patch) | |
tree | 0ae25f5922b23176c613467ac1146a0ddb522a2e /bin | |
parent | 0018c8d2531e93883441e8bddab87548f190e176 (diff) | |
download | mailman-e0bb9149ff8e6d6c263e1bff225851dc5b66dc10.tar.gz mailman-e0bb9149ff8e6d6c263e1bff225851dc5b66dc10.tar.bz2 |
Minor bugfixes
* bin/mailsync: Improve debugging. Don't hardcode PATH components.
* install.pl (install): Ignore backup copies.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mailsync | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/mailsync b/bin/mailsync index 04b0f3b..2667c60 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -64,7 +64,7 @@ kwtab = { conf = { } -os.environ["PATH"] = "/srv/mailman/bin:/usr/local/bin:" + os.environ["PATH"] +os.environ["PATH"] = os.path.dirname(sys.argv[0]) + ':' + os.environ["PATH"] status = EX_OK @@ -158,11 +158,14 @@ def mboxtohtml(listid): print("\"%s\": %s" % (str(cmd), err), file=sys.stderr) status = EX_FAILURE - save_state(listid, len(inbox)) if t > 0: + n = len(inbox) + debug(1, "%s: %d messages, timestamp %d" % (name,n,t)) + save_state(listid, n) save_timestamp(listid, t) - - return True + return True + debug(1, "%s: not modified" % (name)) + return False def savane_lists(file = None): if 'listfile' in conf['core']: |