From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mAtXGTttUWRj1QAASxT56A (envelope-from ) for ; Tue, 02 May 2023 22:06:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iH9YGDttUWTqNwAAG6o9tA (envelope-from ) for ; Tue, 02 May 2023 22:06:19 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 476C837DBC for ; Tue, 2 May 2023 22:06:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptwFa-0005hB-CQ; Tue, 02 May 2023 16:05:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptwFX-0005gb-SE for emacs-orgmode@gnu.org; Tue, 02 May 2023 16:05:23 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptwFV-0008AK-EO for emacs-orgmode@gnu.org; Tue, 02 May 2023 16:05:23 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6C25224029E for ; Tue, 2 May 2023 22:05:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683057919; bh=tIrzWWeMLJanMEnh1c/Ck4xg3Z6uQovbcqGyVpsmJZI=; h=From:To:Cc:Subject:Date:From; b=fnOKCFzJYxSuTQSz7mCOEaXeKYmHhr1VGxxEAEb9R/gGVaC35ApfAaPq5CI2M44mE sRsdiVoT/NLdYxrw3XQk1qEjBE4CitRQ82Mh1GS7aGlYnjUsKPotIWAEcrl6cHALvs TIaAKMXeEeyIkzg9XY2jorXG/0qQmCdE6nEfDtFbFebKRCXWtC9eGWzWiVYdKvFHLA UFAxAuAuFE2MLWZN0x+rUXuxJ3BWbo00FTSUF2sxaBgF4QVPgw1ewUKtC6jyGsMmiG u+UEp0KEOAuxvbJKeDOHT8YvEASpMJ3sysXQDvCoSqv39p+tr+qdNSuZ2iu8sNF7if 6wLFXGZkn+b/w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q9rfQ3WqZz9rxR; Tue, 2 May 2023 22:05:18 +0200 (CEST) From: Ihor Radchenko To: "Christopher M. Miles" Cc: emacs-orgmode@gnu.org, Karl Voit Subject: Re: [EasyPG (epa)] Emacs can't save modified encrypted file In-Reply-To: References: <87pm7lyvdd.fsf@localhost> <87jzxsqyme.fsf@localhost> <874jow8eaf.fsf@localhost> <871qk08bwi.fsf@localhost> <87jzxrdjyn.fsf@localhost> Date: Tue, 02 May 2023 20:08:23 +0000 Message-ID: <87354esdhk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683057978; a=rsa-sha256; cv=none; b=kE4y+7g+az3hPfABya1paozRV8tmtuup+54jazdE1HEF5zMMFjdN5yJGkqXb7CX6NZk9nD MGAsa0iYcZpNiE/G+VLXk67Qmhz+PxrDLvOK1B4M+DKKfqY5xuGGxRdleqnkGTT2bTYgMg +zSH31hf82uGhd+c77XfidEI8Z8z6Jzeawv8Ji26ReR/jKFg4X3z96CFzURwiyhR+eDyd7 9T2rr4wz514wDQh/Bv1itE/IIRIb1UCblHOCRUxkbaijHPtv7tCg3sxvVWSQl5hdaI7XZ6 H3Dix6WaONr2kWEHTjYrcs5Cc3WbiHqUs8gFeX3w/2MUfzr7FWYhmMTDpLO6iQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fnOKCFzJ; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683057978; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Y7PZzbCoLGbSYnsB39ooSLtA9uWD7mPhdpVCzJs63Z0=; b=ZjBoA069gez9gaI16rt/CYtVA//c2OTK+ygn+Zy1xbE7MVNt5R1Dq69nnEJH0S9cFMmzLs o2HT/EqvdCaW+FCb37e+8Bwsk+/C12YovBvt3UKwL1bYHdLuhCUw9BetYxL+Qg3+pXBwj2 8i0mNima3lNMdXCiPfavUt6HdNhY8+1K1ravBIyyQTQhldsG8C0lqbygTQKnxA9RxMNjj6 ngEa1xjaPk3IUPDrq3bVH2aViSjd+loxwWzotvnZldTH9zbNqF4enLMiNyF5i2OuUjQKwZ mBw0i5GaJpg5caO2OrVeEHdKy+pWNZc5SrhiFU6s2gh3CzzObNBynLOU6Xe1AA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fnOKCFzJ; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.19 X-Spam-Score: -6.19 X-Migadu-Queue-Id: 476C837DBC X-TUID: biHHUci8KuVi "Christopher M. Miles" writes: >> Do you have any issues decrypting and encrypting files from command >> line? If no, what about from M-x shell? If yet no, what if you call gpg >> via `start-process'? >> > > - [X] test decrypt & encrypt in terminal with gpg command. -> works fine. > > - [X] test decrypt & encrypt in Emacs =[M-x shell]= with gpg command. -> works fine. > ... > - [X] test decrypt & encrypt in Emacs with ~start-process~ -> works fine Ok. The further step we can try is following what epg does. I am now looking into `epg--start' source code and I note `epg-debug' variable, which might provide some more info to think about. Also, note the `make-process' call in `epg--start' - you may try to run it manually, similar to `start-process' and check if it fails. (For me, :connection-type 'pipe part is a bit fishy - I recall there were some quirks related to it; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44824 ... but it was the opposite to having 'pipe AFAIR). -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at