Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 7c / 349e8c52cf17b516a70ac02d8277ab99ce50d6
1 Return-Path: <dkg@fifthhorseman.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id ABC0D6DE1B25\r
6  for <notmuch@notmuchmail.org>; Sun, 31 Jan 2016 12:40:16 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12  autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id KoK8TWdLVPHZ for <notmuch@notmuchmail.org>;\r
16  Sun, 31 Jan 2016 12:40:15 -0800 (PST)\r
17 Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108])\r
18  by arlo.cworth.org (Postfix) with ESMTP id 70A176DE17BD\r
19  for <notmuch@notmuchmail.org>; Sun, 31 Jan 2016 12:40:09 -0800 (PST)\r
20 Received: from fifthhorseman.net (ip-64-134-185-108.public.wayport.net\r
21  [64.134.185.108])\r
22  by che.mayfirst.org (Postfix) with ESMTPSA id 60EBCF99D\r
23  for <notmuch@notmuchmail.org>; Sun, 31 Jan 2016 15:40:06 -0500 (EST)\r
24 Received: by fifthhorseman.net (Postfix, from userid 1000)\r
25  id 26E432024D; Sun, 31 Jan 2016 15:40:06 -0500 (EST)\r
26 From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
27 To: Notmuch Mail <notmuch@notmuchmail.org>\r
28 Subject: Allow indexing cleartext of encrypted messages (v3)\r
29 Date: Sun, 31 Jan 2016 15:39:45 -0500\r
30 Message-Id: <1454272801-23623-1-git-send-email-dkg@fifthhorseman.net>\r
31 X-Mailer: git-send-email 2.7.0.rc3\r
32 X-BeenThere: notmuch@notmuchmail.org\r
33 X-Mailman-Version: 2.1.20\r
34 Precedence: list\r
35 List-Id: "Use and development of the notmuch mail system."\r
36  <notmuch.notmuchmail.org>\r
37 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
38  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
39 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
40 List-Post: <mailto:notmuch@notmuchmail.org>\r
41 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
42 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
43  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
44 X-List-Received-Date: Sun, 31 Jan 2016 20:40:16 -0000\r
45 \r
46 This is the third draft of the series initially announced in\r
47 id:1449718786-28000-1-git-send-email-dkg@fifthhorseman.net (second\r
48 draft was in\r
49 id:1453258369-7366-1-git-send-email-dkg@fifthhorseman.net).  It\r
50 differs from v2 in that it incorporates the recent improvements in\r
51 detecting and processing S/MIME signatures.\r
52 \r
53 >From the v2 description:\r
54 \r
55 > Notmuch currently doesn't index the cleartext of encrypted mail.  This\r
56 > is the right choice by default, because the index is basically\r
57 > cleartext-equivalent, and we wouldn't want every indexed mailstore to\r
58 > leak the contents of its encrypted mails.\r
59\r
60 > However, if a notmuch user has their index in a protected location,\r
61 > they may prefer the convenience of being able to search the contents\r
62 > of (at least some of) their encrypted mail.\r
63\r
64 > This series of patches enables notmuch to index the cleartext of\r
65 > specific encrypted messages when they're being added via "notmuch new"\r
66 > or "notmuch insert", via a new --try-decrypt flag.\r
67\r
68 > If --try-decrypt is used, and decryption is successful for part of a\r
69 > message, the message gets an additional "index-decrypted" tag.  If\r
70 > decryption of part of a message fails, the message gets an additional\r
71 > "index-decryption-failed" tag.\r
72 \r
73 v2 addresses the concerns raised from the helpful feedback on the\r
74 previous series, and adds a notmuch_indexopts_t object that can be\r
75 used to declare options for indexing messages, including a\r
76 "try_decrypt" boolean.\r
77 \r
78 Additionally, this series adds a new function to libnotmuch:\r
79 \r
80   notmuch_message_reindex (notmuch_message_t *message,\r
81                            notmuch_indexopts_t *indexopts)\r
82 \r
83 Which allows user of the library to adjust the indexing options of a\r
84 given message.\r
85 \r
86 The CLI is additionally augmented with a new notmuch subcommand,\r
87 "notmuch reindex", which also has a --try-decrypt flag.\r
88 \r
89 So a user who has their message index stored securely and wants to\r
90 index the cleartext of all encrypted messages they've received can do\r
91 something like:\r
92 \r
93   notmuch reindex --try-decrypt tag:encrypted and not tag:index-decrypted\r
94 \r
95 Or can clear all indexed cleartext from their database with:\r
96 \r
97   notmuch reindex tag:encrypted and tag:index-decrypted\r
98 \r
99 \r