notmuch-mua and jl-encrypt (was: file-error "not a regular file")
[notmuch-archives.git] / 9b / c0a50702411317b6dc04cca2ae567ff0461a49
1 Return-Path: <fauno@ponape.com.ar>\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 3D0126DE17A1\r
6  for <notmuch@notmuchmail.org>; Wed, 30 Dec 2015 06:14:22 -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.618\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.618 tagged_above=-999 required=5 tests=[AWL=0.034,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.55,\r
13  SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id oClMr9Lzc2J0 for <notmuch@notmuchmail.org>;\r
17  Wed, 30 Dec 2015 06:14:20 -0800 (PST)\r
18 Received: from ponape.com.ar (ponape.com.ar [190.104.249.150])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id A77D26DE179F\r
20  for <notmuch@notmuchmail.org>; Wed, 30 Dec 2015 06:14:19 -0800 (PST)\r
21 Received: by [127.0.0.1] (localhost [127.0.0.1])\r
22  id 2363CC64F7; Wed, 30 Dec 2015 11:14:13 -0300 (ART)\r
23 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kiwwwi.com.ar;\r
24  s=ponape; t=1451484853;\r
25  bh=TLiUgcqiRJlKyCSkjYYpJNgRYZJT33iv+Z6K4MFPVc0=;\r
26  h=From:To:Subject:In-Reply-To:References:Date;\r
27  b=mBw0hk3IyZd6pO1J6ytpNldNqdLqRDTMVKQ3ZJ6DzoKupp6tB8ZO9v302tlFCnUmw\r
28  O9Pu/iIv8MjVOAiW81HgH0XzbdErHm6Sm7z1BDPiMgR8hCH0AolxVF6EqjHE2nedn/\r
29  fx35k/w+byNnVI4eryMG+EmvlMUfcdsCu8bcRujEsBQC33axEAL2ahfNCFwqcN5QdB\r
30  IUir9NXwHgXUIaIah0NPsrhXNgvQfErGmb1ABGo8WuIJz4HivC/D7kaTXkV68+SCwm\r
31  ejh9k4659GlCEnWQ8kN3jtmXsrfNwljkijI5kh29lipi4eUsfOW11ghZ+4cRI/sS1U\r
32  hhVrGMsQHpLyw==\r
33 From: fauno <fauno@kiwwwi.com.ar>\r
34 To: notmuch@notmuchmail.org\r
35 Subject: notmuch-mua and jl-encrypt (was: file-error "not a regular file")\r
36 In-Reply-To: <8737ukcm41.fsf@steelpick.2x.cz>\r
37 References:\r
38  <CAE+_6Tw18LY954NZt+koH-mn=nniubVdk4tR8TSitDy_6wJB2Q@mail.gmail.com>\r
39  <87wprzb4sj.fsf@endefensadelsl.org> <87ege6d41j.fsf@zancas.localnet>\r
40  <878u4e9jkx.fsf@endefensadelsl.org> <8737ukcm41.fsf@steelpick.2x.cz>\r
41 Mail-Followup-To: notmuch@notmuchmail.org\r
42 Date: Wed, 30 Dec 2015 11:14:12 -0300\r
43 Message-ID: <87k2nw6n2j.fsf@endefensadelsl.org>\r
44 MIME-Version: 1.0\r
45 Content-Type: multipart/signed; boundary="=-=-=";\r
46  micalg=pgp-sha512; protocol="application/pgp-signature"\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.20\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51  <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
53  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
58  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Wed, 30 Dec 2015 14:14:22 -0000\r
60 \r
61 --=-=-=\r
62 Content-Type: text/plain\r
63 Content-Transfer-Encoding: quoted-printable\r
64 \r
65 Michal Sojka <sojkam1@fel.cvut.cz> writes:\r
66 > can you share more details about how do you use jl-encrypt and which\r
67 > functions do not work? Recently, I posted a few patches that fix some\r
68 > problems related to the replacing message-mode with\r
69 > notmuch-message-mode. Maybe, there is more what we can do to not break\r
70 > user's setups.\r
71 \r
72 i've been using jl-encrypt unmodified with notmuch for a while now.  i\r
73 just require it on my .emacs\r
74 \r
75 since 0.21, i had to rebind notmuch-message-mode C-c C-c and C-s C-s\r
76 keys:\r
77 \r
78 (define-key notmuch-message-mode-map (kbd "C-c C-c") 'jl-message-send-and-e=\r
79 xit)\r
80 (define-key notmuch-message-mode-map (kbd "C-c C-s") 'jl-message-send)\r
81 \r
82 and solved the issue of fcc by setting notmuch-fcc-dirs to nil and\r
83 making my mta send me bcc of my own email.\r
84 \r
85 this has worked correctly for the last week.\r
86 \r
87 > From a brief look at jl-encrypt, it seems it is tightly bound to gnus,\r
88 > because it uses gnus-message-setup-hook. Maybe it will work again with\r
89 > notmuch if you use my patch [1] and run\r
90 >\r
91 >     (add-hook 'message-setup-hook 'jl-encrypt-if-possible)\r
92 \r
93 i applied your patch to the 0.21 release and byte-compiled notmuch-mua.el\r
94 \r
95 the message is sent unencrypted unless i rebind C-c C-c as before.  the\r
96 email is encrypted but it asks for the recipient, which i'm guessing\r
97 emacs can't figure out for itself anymore?\r
98 \r
99 also tested with `emacs -q` and loading this file, and jl-encrypt never\r
100 asks to encrypt the email when possible:\r
101 \r
102 # /tmp/emacs\r
103 \r
104 (require 'notmuch)\r
105 (add-to-list 'load-path "~/.emacs.d/lisp/")\r
106 (require 'jl-encrypt)\r
107 (add-hook 'message-setup-hook 'jl-encrypt-if-possible)\r
108 (add-hook 'message-setup-hook 'mml-secure-message-sign-pgpmime)\r
109 \r
110 by adding the C-c C-c rebind, it gets to encrypt, but asks for recipient\r
111 again.\r
112 \r
113 i hope this info is useful :)\r
114 \r
115 > -Michal\r
116 >\r
117 > [1] id:1450690875-2111-2-git-send-email-sojkam1@fel.cvut.cz\r
118 \r
119 =2D-=20\r
120 :D\r
121 \r
122 --=-=-=\r
123 Content-Type: application/pgp-signature; name="signature.asc"\r
124 \r
125 -----BEGIN PGP SIGNATURE-----\r
126 \r
127 iQF8BAEBCgBmBQJWg+a0XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w\r
128 ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0OUY3MDdBMUNCMzY2QzU4MEU2MjVCM0M0\r
129 NTYwMzJENzE3QTRDRDlDAAoJEEVgMtcXpM2cMIcH/RwnnJLA1khr9CUx59TMec/t\r
130 nLQy6pqpv2FIArrq1Bp2UXJb2Ths2O50WnSYHxLTiA6un4nZB+ePk60JFnwTr9nv\r
131 zLSo3yu2fXdOhAReBE/6Lg5LwQnUxXTCICeOxpCuSuxhwE01z9q/Fm4cX54DUQXR\r
132 LTNqHcXgAevp//2yMDnuP+swMLcmJBUFNIlXjOWncwN7Bum5E1cnedIDLZU/Eh/g\r
133 CGU0QM+dgvgDEXBKJSkoso0r+d8NcQqBVSGa84tUwvDAUpHy9SeS5tcdv2tcxa2K\r
134 WWC3RlnhGKKIZAFWBSMzj0uhK0N8q6w+wmcw70AWznVU043YE3j6MuGk+vVI7iE=\r
135 =Hye6\r
136 -----END PGP SIGNATURE-----\r
137 --=-=-=--\r