Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D2659200BC3 for ; Fri, 18 Nov 2016 23:39:19 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CF93B160B04; Fri, 18 Nov 2016 22:39:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 24C47160B03 for ; Fri, 18 Nov 2016 23:39:18 +0100 (CET) Received: (qmail 10093 invoked by uid 500); 18 Nov 2016 22:39:18 -0000 Mailing-List: contact commits-help@ponymail.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ponymail.incubator.apache.org Delivered-To: mailing list commits@ponymail.incubator.apache.org Received: (qmail 10080 invoked by uid 99); 18 Nov 2016 22:39:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2016 22:39:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EBDF1185F2E for ; Fri, 18 Nov 2016 22:39:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Lf_KF8uLtEci for ; Fri, 18 Nov 2016 22:39:15 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 80B915F295 for ; Fri, 18 Nov 2016 22:39:15 +0000 (UTC) Received: (qmail 10065 invoked by uid 99); 18 Nov 2016 22:39:14 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2016 22:39:14 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D50DBE0230; Fri, 18 Nov 2016 22:39:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sebb@apache.org To: commits@ponymail.incubator.apache.org Message-Id: <7563575b5d5b47858d3f8f24da10440d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-ponymail git commit: Show bad date Date: Fri, 18 Nov 2016 22:39:14 +0000 (UTC) archived-at: Fri, 18 Nov 2016 22:39:20 -0000 Repository: incubator-ponymail Updated Branches: refs/heads/master 7929acc11 -> 287f7e18c Show bad date Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/287f7e18 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/287f7e18 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/287f7e18 Branch: refs/heads/master Commit: 287f7e18cd0ec42868251607b1ba2082db40cb75 Parents: 7929acc Author: Sebb Authored: Fri Nov 18 16:46:40 2016 +0000 Committer: Sebb Committed: Fri Nov 18 16:46:40 2016 +0000 ---------------------------------------------------------------------- tools/archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/287f7e18/tools/archiver.py ---------------------------------------------------------------------- diff --git a/tools/archiver.py b/tools/archiver.py index 76be895..f0521c8 100755 --- a/tools/archiver.py +++ b/tools/archiver.py @@ -271,7 +271,7 @@ class Archiver(object): if not mdate and msg_metadata.get('archived-at'): mdate = email.utils.parsedate_tz(msg_metadata.get('archived-at')) elif not mdate: - print("Date seems totally wrong, setting to _now_ instead.") + print("Date (%s) seems totally wrong, setting to _now_ instead." % mdate) mdate = time.gmtime() # Get a standard 9-tuple mdate = mdate + (0, ) # Fake a TZ (10th element) mdatestring = time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(email.utils.mktime_tz(mdate)))