[Vagrant Cascadian] Bug#759646: notmuch-emacs: switching mode= to invalid value sends...
authorDavid Bremner <david@tethera.net>
Fri, 29 Aug 2014 18:05:19 +0000 (11:05 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:21 +0000 (10:04 -0800)
ae/e5c6a160980df43dcb9214236c0ee48081f3b7 [new file with mode: 0644]

diff --git a/ae/e5c6a160980df43dcb9214236c0ee48081f3b7 b/ae/e5c6a160980df43dcb9214236c0ee48081f3b7
new file mode 100644 (file)
index 0000000..7c35786
--- /dev/null
@@ -0,0 +1,216 @@
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 31673431FB6\r
+       for <notmuch@notmuchmail.org>; Fri, 29 Aug 2014 11:05:32 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id PDHpYiaFrpgh for <notmuch@notmuchmail.org>;\r
+       Fri, 29 Aug 2014 11:05:28 -0700 (PDT)\r
+Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
+       (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 641E3431FAF\r
+       for <notmuch@notmuchmail.org>; Fri, 29 Aug 2014 11:05:28 -0700 (PDT)\r
+Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
+       (envelope-from <david@tethera.net>)\r
+       id 1XNQYA-0007uy-IU; Fri, 29 Aug 2014 15:05:26 -0300\r
+Received: (nullmailer pid 24360 invoked by uid 1000); Fri, 29 Aug 2014\r
+       18:05:19 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [Vagrant Cascadian] Bug#759646: notmuch-emacs: switching mode= to\r
+       invalid value sends unencrypted mail\r
+User-Agent: Notmuch/0.18.1+72~g028c560 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Fri, 29 Aug 2014 11:05:19 -0700\r
+Message-ID: <87lhq7npcw.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: message/rfc822\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: 8bit\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 29 Aug 2014 18:05:32 -0000\r
+\r
+Return-path: <bounces+20140829-bremner=debian.org@packages.qa.debian.org>\r
+Envelope-to: david@tethera.net\r
+Delivery-date: Fri, 29 Aug 2014 01:21:13 -0300\r
+Received: from quantz.debian.org ([5.153.231.28])\r
+       by yantan.tethera.net with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128)\r
+       (Exim 4.80)\r
+       (envelope-from <bounces+20140829-bremner=debian.org@packages.qa.debian.org>)\r
+       id 1XNDgX-00054M-FR\r
+       for david@tethera.net; Fri, 29 Aug 2014 01:21:13 -0300\r
+Received: from qa by quantz.debian.org with local (Exim 4.80)\r
+       (envelope-from <bounces+20140829-bremner=debian.org@packages.qa.debian.org>)\r
+       id 1XNDgT-0000iW-U5\r
+       for david@tethera.net; Fri, 29 Aug 2014 04:21:09 +0000\r
+Received: from buxtehude.debian.org ([140.211.166.26]) from C=NA,ST=NA,\r
+ L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=buxtehude.debian.org,\r
+ EMAIL=hostmaster@buxtehude.debian.org (verified)      by quantz.debian.org with\r
+ esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128)  (Exim 4.80)     (envelope-from\r
+ <debbugs@buxtehude.debian.org>)       id 1XNDgT-0000hu-CO     for\r
+ notmuch@packages.qa.debian.org; Fri, 29 Aug 2014 04:21:09 +0000\r
+Received: from debbugs by buxtehude.debian.org with local (Exim 4.80)\r
+ (envelope-from <debbugs@buxtehude.debian.org>)        id 1XNDgR-0007ex-9Y; Fri,\r
+ 29 Aug 2014 04:21:07 +0000\r
+X-Loop: owner@bugs.debian.org\r
+Subject: Bug#759646: notmuch-emacs: switching mode= to invalid value sends\r
+ unencrypted mail\r
+Reply-To: Vagrant Cascadian <vagrant@debian.org>, 759646@bugs.debian.org\r
+Resent-From: Vagrant Cascadian <vagrant@debian.org>\r
+Resent-To: debian-bugs-dist@lists.debian.org\r
+Resent-CC: vagrant@debian.org, Carl Worth <cworth@debian.org>\r
+X-Loop: owner@bugs.debian.org\r
+Resent-Date: Fri, 29 Aug 2014 04:21:02 +0000\r
+Resent-Message-ID: <handler.759646.B.140928588228527@bugs.debian.org>\r
+X-Debian-PR-Message: report 759646\r
+X-Debian-PR-Package: notmuch-emacs\r
+X-Debian-PR-Keywords: \r
+X-Debian-PR-Source: notmuch\r
+Received: via spool by submit@bugs.debian.org id=B.140928588228527 (code\r
+ B); Fri, 29 Aug 2014 04:21:02 +0000\r
+Received: (at submit) by bugs.debian.org; 29 Aug 2014 04:18:02 +0000\r
+X-Spam-Checker-Version: SpamAssassin 3.3.2-bugs.debian.org_2005_01_02\r
+       (2011-06-06) on buxtehude.debian.org\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-19.9 required=4.0 tests=BAYES_00,FOURLA,\r
+       FROMDEVELOPER,HAS_PACKAGE,PGPSIGNATURE,X_DEBBUGS_CC autolearn=ham\r
+       version=3.3.2-bugs.debian.org_2005_01_02\r
+X-Spam-Bayes: score:0.0000 Tokens: new, 10; hammy, 151; neutral, 109;\r
+ spammy,       0. spammytokens: hammytokens:0.000-+--H*c:pgp-sha512,\r
+       0.000-+--H*UA:sk:x86_64-, 0.000-+--armhf, 0.000-+--H*u:sk:x86_64-,\r
+       0.000-+--H*u:Notmuch\r
+Received: from cascadia.debian.net ([173.255.214.101]) by\r
+ buxtehude.debian.org with esmtp (Exim 4.80)   (envelope-from\r
+ <vagrant@debian.org>) id 1XNDdS-0007PR-0B     for submit@bugs.debian.org; Fri,\r
+ 29 Aug 2014 04:18:02 +0000\r
+Received: from localhost (host-224-31.pubnet.pdx.edu [131.252.224.31])\r
+ (Authenticated sender: vagrant@cascadia.debian.net)   by cascadia.debian.net\r
+ (Postfix) with ESMTPSA id 424D91B7CC  for <submit@bugs.debian.org>; Thu,\r
+ 28 Aug 2014 21:17:55 -0700 (PDT)\r
+From: Vagrant Cascadian <vagrant@debian.org>\r
+To: Debian Bug Tracking System <submit@bugs.debian.org>\r
+User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Thu, 28 Aug 2014 21:17:51 -0700\r
+Message-ID: <87mwaoudxs.fsf@aikidev.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed;\r
+ boundary="=-=-=";\r
+ micalg=pgp-sha512;\r
+ protocol="application/pgp-signature"\r
+Delivered-To: submit@bugs.debian.org\r
+Delivered-To: notmuch@packages.qa.debian.org\r
+Precedence: list\r
+X-Loop: notmuch@packages.qa.debian.org\r
+X-Debian: PTS\r
+X-Debian-Package: notmuch\r
+X-PTS-Package: notmuch\r
+X-PTS-Keyword: bts\r
+List-ID: <notmuch.bts.packages.qa.debian.org>\r
+List-Unsubscribe: <mailto:pts@qa.debian.org?body=unsubscribe%20notmuch>\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+\r
+Package: notmuch-emacs\r
+Version: 0.18.1-1\r
+Severity: normal\r
+\r
+Thanks for notmuch-emacs!\r
+\r
+When sending mail from notmuch-emacs interface, I usually use pgpmine\r
+signatures, but sometimes I want to send a signed encrypted message, so\r
+I manually edit the mode=sign to mode=signencrypt ... but if I make a\r
+typo, i.e. mode=signinvalidencrypt, notmuch happily and without warning\r
+sends the mail unencrypted.\r
+\r
+i.e. #secure method=pgpmime mode=signinvalidencrypt will end up\r
+sending an encrypted message (with the <>, of course).\r
+\r
+It seems like it should error out if the mode= is set to an invalid or\r
+unknown value, rather than sending mail in the clear.\r
+\r
+I've got this set up in ~/.emacs, not sure what all else might be coming\r
+into play:\r
+\r
+ '(message-setup-hook (quote (mml-secure-message-sign)))\r
+ '(notmuch-crypto-process-mime t)\r
+\r
+\r
+live well,\r
+  vagrant\r
+\r
+\r
+-- System Information:\r
+Debian Release: jessie/sid\r
+  APT prefers testing\r
+  APT policy: (500, 'testing'), (120, 'unstable'), (1, 'experimental')\r
+Architecture: amd64 (x86_64)\r
+Foreign Architectures: i386\r
+armhf\r
+\r
+Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)\r
+Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)\r
+Shell: /bin/sh linked to /bin/dash\r
+\r
+Versions of packages notmuch depends on:\r
+ii  libc6           2.19-9\r
+ii  libglib2.0-0    2.40.0-4\r
+ii  libgmime-2.6-0  2.6.20-1\r
+ii  libnotmuch3     0.18.1-1\r
+ii  libtalloc2      2.1.1-2\r
+ii  zlib1g          1:1.2.8.dfsg-1\r
+\r
+Versions of packages notmuch recommends:\r
+ii  alot           0.3.5-2\r
+ii  gnupg-agent    2.0.25-2\r
+ii  notmuch-emacs  0.18.1-1\r
+ii  notmuch-mutt   0.18.1-1\r
+ii  notmuch-vim    0.18.1-1\r
+\r
+notmuch suggests no packages.\r
+\r
+-- no debconf information\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1\r
+\r
+iQIcBAEBCgAGBQJT//7vAAoJELeLgtSBS5G2eBoQAKfr8KSu+Ao71lE6Es31jZFK\r
+tr1GKtDUeuy0ThNjtMEpnEHrq1WIS5Hm0CBuLd1CWTln7pdGo7X+2PZ4ob2710Qg\r
+v1NS6pwlEvL758HWg3uboY3SC88+bbzmehFGwPl4xO5ado5Y0RY+tZa3dLKOwXSR\r
+FgCDFwU0hN5x4wUSx8XjJpOyfPJ7BQu1SyIB7SKiesGJeUB6QuL8U7GP9tz7K7N+\r
+J72a8kAhaWlUwzwb/USFL6r+I4t+BrnllBv8w5OSddnleq+BEFv17ezkewQXuiwX\r
+JqEoA336rBQt+d0Bc6tNxRPRPZ0oiHDnb9IJ2CDW+05Tmnht5u1YlMhKk8jAJiO8\r
+r8k4OCbz5fmrIuhdy+AMMUK6l4NsFLLZTJlrInU//wy164P+8nrV3zDmM68AZNef\r
+mgQ5leEC6ekXBMrk4Gung6/+qMBGOJ2khi2Zone/WM3lFk2WyJRvw4aj9gVhxnqd\r
+ZBGcrmWIvN5hpWFlFkzHqOG6zuNEAwBosOs+bmPtmXMBZuDFzJg5XyVyqwcmxXPk\r
+ohgDg0kW2/xkpSiEEAWbyPnnNq++2eLpQ20tJdJvWnWv1PY3QwYvSIT49QaLJ+vr\r
+v6U0hKuntF2fZSBgXUvSu+fwfifVvq7T43/GtnLUf0V+0C+Wz4c5aDtj62CPPWtP\r
+KijS/byqyC4GJ3z27PMi\r
+=5WFy\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r
+\r