From: fauno Date: Wed, 30 Dec 2015 14:14:12 +0000 (+2100) Subject: notmuch-mua and jl-encrypt (was: file-error "not a regular file") X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c5929bd06d673570c94043cd0829047928acba22;p=notmuch-archives.git notmuch-mua and jl-encrypt (was: file-error "not a regular file") --- diff --git a/9b/c0a50702411317b6dc04cca2ae567ff0461a49 b/9b/c0a50702411317b6dc04cca2ae567ff0461a49 new file mode 100644 index 000000000..9b83d77bb --- /dev/null +++ b/9b/c0a50702411317b6dc04cca2ae567ff0461a49 @@ -0,0 +1,137 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 3D0126DE17A1 + for ; Wed, 30 Dec 2015 06:14:22 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.618 +X-Spam-Level: +X-Spam-Status: No, score=-0.618 tagged_above=-999 required=5 tests=[AWL=0.034, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.55, + SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id oClMr9Lzc2J0 for ; + Wed, 30 Dec 2015 06:14:20 -0800 (PST) +Received: from ponape.com.ar (ponape.com.ar [190.104.249.150]) + by arlo.cworth.org (Postfix) with ESMTPS id A77D26DE179F + for ; Wed, 30 Dec 2015 06:14:19 -0800 (PST) +Received: by [127.0.0.1] (localhost [127.0.0.1]) + id 2363CC64F7; Wed, 30 Dec 2015 11:14:13 -0300 (ART) +DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kiwwwi.com.ar; + s=ponape; t=1451484853; + bh=TLiUgcqiRJlKyCSkjYYpJNgRYZJT33iv+Z6K4MFPVc0=; + h=From:To:Subject:In-Reply-To:References:Date; + b=mBw0hk3IyZd6pO1J6ytpNldNqdLqRDTMVKQ3ZJ6DzoKupp6tB8ZO9v302tlFCnUmw + O9Pu/iIv8MjVOAiW81HgH0XzbdErHm6Sm7z1BDPiMgR8hCH0AolxVF6EqjHE2nedn/ + fx35k/w+byNnVI4eryMG+EmvlMUfcdsCu8bcRujEsBQC33axEAL2ahfNCFwqcN5QdB + IUir9NXwHgXUIaIah0NPsrhXNgvQfErGmb1ABGo8WuIJz4HivC/D7kaTXkV68+SCwm + ejh9k4659GlCEnWQ8kN3jtmXsrfNwljkijI5kh29lipi4eUsfOW11ghZ+4cRI/sS1U + hhVrGMsQHpLyw== +From: fauno +To: notmuch@notmuchmail.org +Subject: notmuch-mua and jl-encrypt (was: file-error "not a regular file") +In-Reply-To: <8737ukcm41.fsf@steelpick.2x.cz> +References: + + <87wprzb4sj.fsf@endefensadelsl.org> <87ege6d41j.fsf@zancas.localnet> + <878u4e9jkx.fsf@endefensadelsl.org> <8737ukcm41.fsf@steelpick.2x.cz> +Mail-Followup-To: notmuch@notmuchmail.org +Date: Wed, 30 Dec 2015 11:14:12 -0300 +Message-ID: <87k2nw6n2j.fsf@endefensadelsl.org> +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha512; protocol="application/pgp-signature" +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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, 30 Dec 2015 14:14:22 -0000 + +--=-=-= +Content-Type: text/plain +Content-Transfer-Encoding: quoted-printable + +Michal Sojka writes: +> can you share more details about how do you use jl-encrypt and which +> functions do not work? Recently, I posted a few patches that fix some +> problems related to the replacing message-mode with +> notmuch-message-mode. Maybe, there is more what we can do to not break +> user's setups. + +i've been using jl-encrypt unmodified with notmuch for a while now. i +just require it on my .emacs + +since 0.21, i had to rebind notmuch-message-mode C-c C-c and C-s C-s +keys: + +(define-key notmuch-message-mode-map (kbd "C-c C-c") 'jl-message-send-and-e= +xit) +(define-key notmuch-message-mode-map (kbd "C-c C-s") 'jl-message-send) + +and solved the issue of fcc by setting notmuch-fcc-dirs to nil and +making my mta send me bcc of my own email. + +this has worked correctly for the last week. + +> From a brief look at jl-encrypt, it seems it is tightly bound to gnus, +> because it uses gnus-message-setup-hook. Maybe it will work again with +> notmuch if you use my patch [1] and run +> +> (add-hook 'message-setup-hook 'jl-encrypt-if-possible) + +i applied your patch to the 0.21 release and byte-compiled notmuch-mua.el + +the message is sent unencrypted unless i rebind C-c C-c as before. the +email is encrypted but it asks for the recipient, which i'm guessing +emacs can't figure out for itself anymore? + +also tested with `emacs -q` and loading this file, and jl-encrypt never +asks to encrypt the email when possible: + +# /tmp/emacs + +(require 'notmuch) +(add-to-list 'load-path "~/.emacs.d/lisp/") +(require 'jl-encrypt) +(add-hook 'message-setup-hook 'jl-encrypt-if-possible) +(add-hook 'message-setup-hook 'mml-secure-message-sign-pgpmime) + +by adding the C-c C-c rebind, it gets to encrypt, but asks for recipient +again. + +i hope this info is useful :) + +> -Michal +> +> [1] id:1450690875-2111-2-git-send-email-sojkam1@fel.cvut.cz + +=2D-=20 +:D + +--=-=-= +Content-Type: application/pgp-signature; name="signature.asc" + +-----BEGIN PGP SIGNATURE----- + +iQF8BAEBCgBmBQJWg+a0XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0OUY3MDdBMUNCMzY2QzU4MEU2MjVCM0M0 +NTYwMzJENzE3QTRDRDlDAAoJEEVgMtcXpM2cMIcH/RwnnJLA1khr9CUx59TMec/t +nLQy6pqpv2FIArrq1Bp2UXJb2Ths2O50WnSYHxLTiA6un4nZB+ePk60JFnwTr9nv +zLSo3yu2fXdOhAReBE/6Lg5LwQnUxXTCICeOxpCuSuxhwE01z9q/Fm4cX54DUQXR +LTNqHcXgAevp//2yMDnuP+swMLcmJBUFNIlXjOWncwN7Bum5E1cnedIDLZU/Eh/g +CGU0QM+dgvgDEXBKJSkoso0r+d8NcQqBVSGa84tUwvDAUpHy9SeS5tcdv2tcxa2K +WWC3RlnhGKKIZAFWBSMzj0uhK0N8q6w+wmcw70AWznVU043YE3j6MuGk+vVI7iE= +=Hye6 +-----END PGP SIGNATURE----- +--=-=-=--