Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B1006429E25 for ; Mon, 27 Jun 2011 15:07:53 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2uHXHmAJLSyE for ; Mon, 27 Jun 2011 15:07:53 -0700 (PDT) Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU [18.7.68.37]) by olra.theworths.org (Postfix) with ESMTP id 36ECD431FD0 for ; Mon, 27 Jun 2011 15:07:53 -0700 (PDT) X-AuditID: 12074425-b7b82ae000000a2a-fc-4e08ff143c90 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP id 52.B5.02602.41FF80E4; Mon, 27 Jun 2011 18:07:16 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id p5RM7qCc001731; Mon, 27 Jun 2011 18:07:52 -0400 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id p5RM7oPC001638 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Mon, 27 Jun 2011 18:07:51 -0400 (EDT) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.72) (envelope-from ) id 1QbJy1-0001cJ-Kb; Mon, 27 Jun 2011 18:07:41 -0400 Date: Mon, 27 Jun 2011 18:07:41 -0400 From: Austin Clements To: Jameson Graef Rollins , Daniel Kahn Gillmor Subject: Re: [PATCH] Do not attept to output part raw if part is not GMimePart. Message-ID: <20110627220741.GA4120@mit.edu> References: <1307032735-27427-1-git-send-email-jrollins@finestructure.net> <1307120466-4980-1-git-send-email-jrollins@finestructure.net> <87wrgccedd.fsf@yoom.home.cworth.org> <87mxh319un.fsf@servo.factory.finestructure.net> <878vsn0x1i.fsf@servo.factory.finestructure.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878vsn0x1i.fsf@servo.factory.finestructure.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgleLIzCtJLcpLzFFi42IR4hRV1hX5z+FnMLVfzKK1+zOTxZ59XhbX b85kdmD2ONvdzupx9zSXx7NVt5gDmKO4bFJSczLLUov07RK4Mt5PWMpYcIe34sXRM4wNjH+5 uhg5OCQETCT6mtO6GDmBTDGJC/fWs4HYQgL7GCX+LDaHsDcwSmw869TFyAVkn2SSOLdoLzOE s4RRonvxTnaQQSwCqhI7d6mBNLAJaEhs27+cEcQWEciReP1qDSuIzSygJbF14wewuLBAoMSp J0fAWnkFtCUu/JSAGHmeSWLxk1tMIDW8AoISJ2c+YYHpvfHvJRNIPbOAtMTyfxwgYU4BW4l3 56+BjRcVUJG4tr+dbQKj0Cwk3bOQdM9C6F7AyLyKUTYlt0o3NzEzpzg1Wbc4OTEvL7VI10Iv N7NELzWldBMjKMDZXVR3ME44pHSIUYCDUYmHl2klh58Qa2JZcWXuIUZJDiYlUd7Af0AhvqT8 lMqMxOKM+KLSnNTiQ4wSHMxKIrwM2kA53pTEyqrUonyYlDQHi5I4b4j3f18hgfTEktTs1NSC 1CKYrAwHh5IEbwjIUMGi1PTUirTMnBKENBMHJ8hwHqDhwSA1vMUFibnFmekQ+VOMilLivEUg CQGQREZpHlwvLAG9YhQHekWYNwKkigeYvOC6XwENZgIarGMKNrgkESEl1cDYOj8/RfrQrPB1 7ozWou3TrpjGGHL0XRZXbvsUnCaecszwzbGOd3mqe6ZapLnn1ljOvN1xZsZU/oIVLq/zMmNe TjlVG3HLxSXg4/eLf15K+Nl3Oaw96Hhh+tvQLxyXxS56FitvunH43cLaszEWMwrXHjq3kmGi 421345dc1z6cMfbZWhyj97hFiaU4I9FQi7moOBEAsxOpqBsDAAA= Cc: Notmuch Mail X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2011 22:07:53 -0000 Quoth Jameson Graef Rollins on Jun 27 at 2:44 pm: > On Mon, 27 Jun 2011 16:43:36 -0400, Austin Clements wrote: > > Just to clarify my understanding, --format=raw is only intended to > > work on either the whole message (special-cased in do_show_single) or > > a leaf MIME part, and in any other case, it will output nothing? The > > raw output test cases seem pretty thin. > > Hey, Austin. The raw part output works for *any* part, be it leaf part, > multipart, message/rfc822, etc. I added a bunch of tests for raw part > output that should cover all of this, although I don't think they've > been pulled into master yet. Oh, right, of course. show_message_part will walk into the parts, so format_part_content_raw will still be called on the leafs of a requested multipart. Though, this approach results in each leaf being transfer decoded and printed individually, so if you ask for a multipart, you won't get the "raw" contents of the multipart (unless it's part 0), so much as you get the concatenated "raw" contents of each part in the multipart. Daniel, is this the problem that you're getting at with "opacity"? That if you ask for a multipart, you should effectively get a slice out of the original message bytes (since multipart/* parts can't have non-identity transfer encodings). Are you also saying that should extend to transfer encoded leaf parts, too? > I think there are a lot of open questions about what should be output > for multipart raw. We should output _something_, though. I think we > can fix all of this up for 0.7, based on the work you've already done, > after 0.6 is released. Yes, hopefully. That's why I'm making sure I understand the issues here. ]:--8)