From 610bb3505445cb729a6ca269db80eab44797a30f Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Thu, 17 May 2012 14:55:53 +1700 Subject: [PATCH] [PATCH 0/6] cli: improve handling of crypto parameters contexts --- b3/2f804bfe549a8359652223e453810828ab5ebf | 68 +++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 b3/2f804bfe549a8359652223e453810828ab5ebf diff --git a/b3/2f804bfe549a8359652223e453810828ab5ebf b/b3/2f804bfe549a8359652223e453810828ab5ebf new file mode 100644 index 000000000..a9e80b97e --- /dev/null +++ b/b3/2f804bfe549a8359652223e453810828ab5ebf @@ -0,0 +1,68 @@ +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 9BF98431FAF + for ; Wed, 16 May 2012 14:56:11 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.3 +X-Spam-Level: +X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3] 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 hmPFPw5MuREd for ; + Wed, 16 May 2012 14:56:11 -0700 (PDT) +Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu + [131.215.239.19]) + by olra.theworths.org (Postfix) with ESMTP id 0781B431FBC + for ; Wed, 16 May 2012 14:56:10 -0700 (PDT) +Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) + by fire-doxen-postvirus (Postfix) with ESMTP id 94AD9328056 + for ; Wed, 16 May 2012 14:56:05 -0700 (PDT) +X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new +Received: from finestructure.net (rrcs-184-74-199-219.nyc.biz.rr.com + [184.74.199.219]) (Authenticated sender: jrollins) + by fire-doxen-submit (Postfix) with ESMTP id 91B942E50AE0 + for ; Wed, 16 May 2012 14:56:03 -0700 (PDT) +Received: by finestructure.net (Postfix, from userid 1000) + id 135854FD; Wed, 16 May 2012 14:56:02 -0700 (PDT) +From: Jameson Graef Rollins +To: Notmuch Mail +Subject: [PATCH 0/6] cli: improve handling of crypto parameters contexts +Date: Wed, 16 May 2012 14:55:53 -0700 +Message-Id: <1337205359-2444-1-git-send-email-jrollins@finestructure.net> +X-Mailer: git-send-email 1.7.10 +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: Wed, 16 May 2012 21:56:11 -0000 + +I wanted to see if I could hack in S/MIME support, but ultimately +failed (the interface is too stupid for me to deal with at the +moment). However, on the way there I did manage to make some tangible +improvements to how crypto is handled in show and reply. + +Most importantly I've moved the initialization of the gpg context to +mime_node.c where it is created lazily, only when needed. This should +provide some speed up in notmuch show and reply when crypto flags are +provided but the messages have no crypto parts. + +I was also able to get rid of a bunch of those pesky +"#ifdef GMIME_ATLEAST_26" conditionals. + +This should provide a better framework for someone to try to hack in +S/MIME support at a later date if they're so inclined. + +jamie. + -- 2.26.2