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 853ED431FD0 for ; Sat, 24 Dec 2011 11:02:19 -0800 (PST) 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 3hWGQCFdr6gs for ; Sat, 24 Dec 2011 11:02:19 -0800 (PST) Received: from dmz-mailsec-scanner-7.mit.edu (DMZ-MAILSEC-SCANNER-7.MIT.EDU [18.7.68.36]) by olra.theworths.org (Postfix) with ESMTP id F3DEA431FB6 for ; Sat, 24 Dec 2011 11:02:18 -0800 (PST) X-AuditID: 12074424-b7fae6d000000906-a7-4ef621ba3d54 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP id 08.9A.02310.AB126FE4; Sat, 24 Dec 2011 14:02:18 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id pBOJ2HuB005895; Sat, 24 Dec 2011 14:02:18 -0500 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 pBOJ2Gq0003226 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sat, 24 Dec 2011 14:02:17 -0500 (EST) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77) (envelope-from ) id 1ReWsF-0003p9-Kn; Sat, 24 Dec 2011 14:03:15 -0500 Date: Sat, 24 Dec 2011 14:03:15 -0500 From: Austin Clements To: Jameson Graef Rollins Subject: Re: [PATCH v4 2/4] Introduce a generic tree-like abstraction for MIME traversal. Message-ID: <20111224190315.GE1927@mit.edu> References: <1323460468-4030-1-git-send-email-amdragon@mit.edu> <1324698348-27620-1-git-send-email-amdragon@mit.edu> <1324698348-27620-3-git-send-email-amdragon@mit.edu> <87y5u2jte1.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y5u2jte1.fsf@servo.finestructure.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpileLIzCtJLcpLzFFi42IRYrdT192l+M3P4OJsNYs9+7wsrt+cyezA 5HH3NJfHs1W3mAOYorhsUlJzMstSi/TtErgyrh30K3jDWTHnxA2mBsZ77F2MnBwSAiYSLct+ sEDYYhIX7q1n62Lk4hAS2Mco0X/jLyuEs4FRYm/PS2YI5ySTxIPORnYIZwlQ2edOsFksAqoS zd39YLPYBDQktu1fzghiiwiYSfR8+QNmMwtIS3z73cwEYgsLREv8/dnACmLzCmhLfD5yCWrd DUaJ4xsXsUAkBCVOznzCAtGsJXHj30ugZg6wQcv/cYCEOQVMJT7OuAU2U1RARWLKyW1sExiF ZiHpnoWkexZC9wJG5lWMsim5Vbq5iZk5xanJusXJiXl5qUW65nq5mSV6qSmlmxjBQe2isoOx +ZDSIUYBDkYlHt7GpV/8hFgTy4orcw8xSnIwKYnyMkp88xPiS8pPqcxILM6ILyrNSS0+xCjB wawkwquZBFTOm5JYWZValA+TkuZgURLn1dB65yckkJ5YkpqdmlqQWgSTleHgUJLglQNGr5Bg UWp6akVaZk4JQpqJgxNkOA/QcDOQGt7igsTc4sx0iPwpRkUpcV4ekIQASCKjNA+uF5Z0XjGK A70iDLGCB5iw4LpfAQ1mAhocYwRydXFJIkJKqoGR7cJ9Pg0W5+QYne9HXTsdZMKusqRn7t8y +93ZljVZutOO3FNIXXmM89/xDZyLXatLBD/0zzlQWCHb6868/EVH2oTSlPWXzKUtPsU276qT Wyx38VTT+wxOIdu7Ou2rXaxeeFmc0PoiycXl17TaZrn5xUkXpwndmNZ0QdTG/PdPk3k3TPu2 THdVYinOSDTUYi4qTgQAlh+W+BUDAAA= Cc: notmuch@notmuchmail.org 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: Sat, 24 Dec 2011 19:02:19 -0000 Quoth Jameson Graef Rollins on Dec 23 at 11:55 pm: > On Fri, 23 Dec 2011 22:45:46 -0500, Austin Clements wrote: > > + /* True if decryption of this part was attempted. */ > > + notmuch_bool_t decrypt_attempted; > > + /* True if decryption of this part's child succeeded. In this > > + * case, the decrypted part is substituted for the second child of > > + * this part (which would usually be the encrypted data). */ > > + notmuch_bool_t decrypt_success; > > + > > + /* True if signature verification on this part was attempted. */ > > + notmuch_bool_t sig_attempted; > > I think these new variables make sense, and reflect the correct > semantics, as you already mentioned. > > I do, however, think the later variable should be called > "verify_attempted" (or "verification_", or "ver_"?), instead of > "sig_attempted", since verification is the complementary action on a > signed part, just as decryption is for an encrypted one. > "sig_attempted" somehow implies to me that one is trying to make a > signature, not verify an existing one. The intent was to parallel sig_validity, but I see your point. v5 with verify_attempted will be coming along soon (when our power comes back).