From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Signing message reply problem Date: Mon, 31 Oct 2022 14:38:21 +0100 Message-ID: <87mt9cp0z6.fsf@gmail.com> References: <87eduqfcah.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15562"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Angel de Vicente Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 31 14:39:11 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opV0P-0003rD-IM for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 31 Oct 2022 14:39:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opUzs-0002C7-8R; Mon, 31 Oct 2022 09:38:36 -0400 Original-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 1opUzq-0002Bl-Be for help-gnu-emacs@gnu.org; Mon, 31 Oct 2022 09:38:35 -0400 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opUzo-0003Yx-Sr for help-gnu-emacs@gnu.org; Mon, 31 Oct 2022 09:38:34 -0400 Original-Received: by mail-wm1-x32b.google.com with SMTP id 5so7154978wmo.1 for ; Mon, 31 Oct 2022 06:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to; bh=ijIF9GRjTOWNqOipAbQH9ogqDtocuQc+PThLRwfPOz0=; b=UOPvBhFQijJ35vfZ3sK9iBsYszBzjdfBixlatlBTxpMQQEKNTDJlsP1HFulm+groqv cxX71Crs5ZrXZkIDtBiI7rFQoAtSYGuAdyXZJsZ6h3ENtQF76btNg6yRZ/Iv4Y8JSAS5 NVO/ehNSax8vvw8pwDG/fqNKO0X0aEEmNisECNIrm9YJYWutUcQyr9cO3rGJbJQnIm+I uspju/03B9ZbRLN1gnU1k7ssPY+o+JTrV73v5yA4vJKzQmExikxh72fZ1AqTxV/6T7ou R+puIh14odQEJCUR0wHCqLHuDTnZPwyeHU6UFALTkfUPwISFcFBHX6XEafW0EETpLynW zjOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ijIF9GRjTOWNqOipAbQH9ogqDtocuQc+PThLRwfPOz0=; b=KNxV32ykQlN+CgX05qWyf7ZsTdoYIAZzSja59CLMWUCbNOHC7e9+4e7T6+1Fj3pnYI nNZx6xQcFqKv+6XuktNcqFbMKzt0H96xwsZxakTx/r//dlsXWHOwjmJ38+VE20UEKW8S tvxMtz+13mzr5Xr4987PtHV5zeWu3abpD3vw1Sb8mqonTTNRC7iszz+52CC/zPx1QfQW bmRidYW0qXAFmd6cgJ3qIXFKTrzkmjLS7hXe73+8sYabIF6JrbemKSQ8+6Nnw+SAfSna dVDY/SEp0rCezrv3UgDzdJio+qwGjIp9sI56fYrIIfgHUGsC7ejgq5Dt7dbBY+74vuyi grTg== X-Gm-Message-State: ACrzQf3CC64qt3LgzEh1FtPpAKEFoqu9HCZjsT1UPedDaM+4AADfKsCq FgoN7iONnqnQgsL89Y+F5VDllb+webs= X-Google-Smtp-Source: AMsMyM7rll48r0zAf+kJXtQqiV+tg8ZjnqW0YmHily/RBce5nh2n2z2dQWlnfrxePcP2yVEhNv58jQ== X-Received: by 2002:a05:600c:4e90:b0:3c6:f1b9:3f92 with SMTP id f16-20020a05600c4e9000b003c6f1b93f92mr8262043wmq.26.1667223502918; Mon, 31 Oct 2022 06:38:22 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id az29-20020a05600c601d00b003cdf141f363sm7423837wmb.11.2022.10.31.06.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 06:38:22 -0700 (PDT) In-Reply-To: <87eduqfcah.fsf@gmail.com> (Angel de Vicente's message of "Sun, 30 Oct 2022 00:19:34 +0100") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140539 Archived-At: >>>>> On Sun, 30 Oct 2022 00:19:34 +0100, Angel de Vicente said: Angel> In my .emacs file I add the following hook, so that all messages= will be Angel> signed automatically: Angel> (add-hook 'message-setup-hook 'mml-secure-message-sign-pgpmime) Angel> and that works fine for regular messages that I start or when re= plying Angel> to previously signed, but if the message I reply to is not signe= d, then Angel> the tag <#secure method=3Dpgpmime mode=3Dsign> is placed in the = middle of Angel> the message, and the outgoing message is not signed. That sounds like either a bug or a documenation issue, maybe report it with M-x report-emacs-bug (you didn=CA=BCt mention which version of Emacs you=CA=BCre using) Angel> I can certainly sign it no problems if I issue the command C-c C= -m C-s, Angel> which then positions the tag again at the beginning of the messa= ge, but Angel> obviously I would prefer not to do it by hand, because I will mo= st Angel> likely forget. Angel> Any advice/ideas? Untested, but something like: (defun angel-message-setup () (save-excursion (message-goto-body) (mml-secure-message-sign-pgpmime))) (add-hook 'message-setup-hook 'angel-message-setup) Robert --=20