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 C8190200D06 for ; Mon, 25 Sep 2017 15:25:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C6C601609C4; Mon, 25 Sep 2017 13:25:16 +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 192E61609BB for ; Mon, 25 Sep 2017 15:25:15 +0200 (CEST) Received: (qmail 29210 invoked by uid 500); 25 Sep 2017 13:25:15 -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 29196 invoked by uid 99); 25 Sep 2017 13:25:15 -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; Mon, 25 Sep 2017 13:25:15 +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 C03FB182F69 for ; Mon, 25 Sep 2017 13:25:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.222 X-Spam-Level: X-Spam-Status: No, score=-4.222 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id skw_pZlWhfb9 for ; Mon, 25 Sep 2017 13:25:14 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id E84B560E35 for ; Mon, 25 Sep 2017 13:25:12 +0000 (UTC) Received: (qmail 29176 invoked by uid 99); 25 Sep 2017 13:25:12 -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; Mon, 25 Sep 2017 13:25:12 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2BF85F55C0; Mon, 25 Sep 2017 13:25:12 +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: X-Mailer: ASF-Git Admin Mailer Subject: incubator-ponymail git commit: Show some message structure if verbose Date: Mon, 25 Sep 2017 13:25:12 +0000 (UTC) archived-at: Mon, 25 Sep 2017 13:25:17 -0000 Repository: incubator-ponymail Updated Branches: refs/heads/master 698732cd4 -> 15fdd790e Show some message structure if verbose Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/15fdd790 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/15fdd790 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/15fdd790 Branch: refs/heads/master Commit: 15fdd790ea7d7cd73170536720f2478b9f97156a Parents: 698732c Author: Sebb Authored: Mon Sep 25 14:25:02 2017 +0100 Committer: Sebb Committed: Mon Sep 25 14:25:02 2017 +0100 ---------------------------------------------------------------------- tools/archiver.py | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/15fdd790/tools/archiver.py ---------------------------------------------------------------------- diff --git a/tools/archiver.py b/tools/archiver.py index 78db074..cda12a0 100755 --- a/tools/archiver.py +++ b/tools/archiver.py @@ -215,6 +215,8 @@ class Archiver(object): body = None firstHTML = None for part in msg.walk(): + if args.verbose: + print("Content-Type: %s" % part.get_content_type()) """ Find the first body part and the first HTML part Note: cannot use break here because firstHTML is needed if len(body) <= 1