From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from mx1.math.uh.edu (mx1.math.uh.edu [129.7.128.32]) by inbox.vuxu.org (Postfix) with ESMTP id 3767830DE6 for ; Sun, 8 Dec 2024 06:06:20 +0100 (CET) Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1tK9Up-0000000Bx1C-1U5W for ml@inbox.vuxu.org; Sat, 07 Dec 2024 23:06:19 -0600 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.97.1) (envelope-from ) id 1tK9Un-00000007dFg-2YaK for ml@inbox.vuxu.org; Sat, 07 Dec 2024 23:06:17 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.97.1) (envelope-from ) id 1tK9Uk-00000007dFX-4Aii for ding@lists.math.uh.edu; Sat, 07 Dec 2024 23:06:15 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1tK9Ua-0000000Bx0e-1SUp for ding@lists.math.uh.edu; Sat, 07 Dec 2024 23:06:09 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=38F28efoyrJ5EZh6haO6jkTYP+1v5HYHr/p96i3TI5Q=; b=Pyx2J2bG5RFjiVLOTlSNARi0Ef +94I52pUMNQBOBZSuqS/dRMV0viRwye6X/hXOdno61Y6P1YyqvC8AoV9jzDsqxXGVTTlflUXismAt x2Qn7bA86QdmI27Y+sfNXNA+kg/CZfwx+55BXzE8r8321U2zEhrbi0Gb7iEtlJXqXnqE=; Received: from mout.gmx.net ([212.227.17.22]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tK9UN-0008MB-B7 for ding@gnus.org; Sun, 08 Dec 2024 06:05:53 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1733634350; x=1734239150; i=jimjoe@gmx.net; bh=38F28efoyrJ5EZh6haO6jkTYP+1v5HYHr/p96i3TI5Q=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=o2xIUp/TkcSHU8DCxtrrnYW/2QJF2cAkeqWj1qUb3wyQUU+k6BAw3WzPnqL+4FpM 4lVOIHbQALLwBkCO6FzrsYN0F4QPPQYa6b1S92fdLUuvlOzFO+s39cSIcZQdQyxLi FKTK/PlAbgzMOMW3hp+VMsxK9gWp+f5sg8r9uKYlMzujNEY+zsdDEykFc8Xsn2262 hikMYNSiTEXqBcOMj0U8OVSjuNzFM7VFUf6NSTW9Rmhot/jY2uaxgiQiL+i09/TC0 GJ5oarEvMM2d2eBok+EOnP8K4SFDtcnhTxbeqrRzBgAEIS/jPtOQAz1uGDcDB4F/i rrvgavEgXJWexItoOQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from user-Inspiron-3493 ([42.108.20.120]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MTzb8-1tBwIJ0geA-00LJwt for ; Sun, 08 Dec 2024 06:05:50 +0100 From: James Thomas To: ding@gnus.org Subject: Re: What's the best way to auto-sign some emails but not all? In-Reply-To: <871pyuksd7.fsf@miraculix.mork.no> (=?utf-8?Q?=22Bj=C3=B8rn?= Mork"'s message of "Fri, 29 Nov 2024 15:49:08 +0100") References: <871pyuksd7.fsf@miraculix.mork.no> Date: Sun, 08 Dec 2024 10:35:45 +0530 Message-ID: <86frmyvk5y.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:JBuCQEebQSn/bJD5LYd1DczRqZ0Z+hnYa3rbWAUYzDgCsUQed1D Z1BHpHit8vhedntt84tSaJjVGtjqZ6OvztgO8bR6geWAB0S4atpMQaH36JRCMfftolHeO8n cZB/HuEiiHXOkLoCPWP+Z4fGP8G0KshK0N3aNv0a0D92ZxFjWx1pWzQeA9xcuwXI3reUQH2 rEH/GJryDmHwPBd8Uogbg== UI-OutboundReport: notjunk:1;M01:P0:2lB5OPmcG2g=;+NtfgQIqa73oqe7U80G9DIdBjlc eu24jB+D9/43+wfSt6EpkJGQj7engTtmD9D5Uk09aFdH3S6r9stvolFfZQTj9GEgY1OEzIdND 48Hibdp7/9ivGP5xeSuAhVk/h5GM67jHzXER+o7or3e389YQgU6d+DGxVz0tQxm33B/0qmT7r HDS/kpCuSEskrca/hY2RF1v+k1NlnoZ47AbwtETOoTzH3vKkeEQ7P9kFz6gi6cqToNMCZb9em 5RfMBCVploEPm7JICPyOWAyRD5gJyJHN6UkGSIoSqh0UVeJjw+0Mk2D/FCNL7RwwTe/8/4Iz6 qXrJnl2XgdM90YADmYolu2V40JqyqDutKqlkPyzkJ2DlevT7NOdl/NJYPDyiC2CY8Yz0KOklM PtD1iktGmyMSWH6I9mrJcCAJLEIB26x5KwES/BNnvEIqupVpK4825yMtr9FuK2vkjMESS+Zuk /Tsy13QbCoVmb69odwY7DUyHlolKuP4SDvM0UqBgHbWxFUHj+v5R2RhEa//L9XuToBXstFjeK ZqmIv0eI9tC4y73U3eXybGNkBTtwA+lwaW+qZx/EC5yf1e5meFQrbaPPInyGQrWYwAqNUcxro FER6vQ75Owd28iwcmdyCiU/aLU6FVvc5LhD5IDynwa2ahlFq/tuAtPm21rA9rITiIULOaj5Wr VmaTtk1w6BQucANCloWRGtdVwEVDjM9ODeMNKUbR2BnebEc8E9e1WPbzTgKLyZtHumLWzqBL0 Y56xveqgV/STwJAMi6j9hUQjkBtdEWpEvtkDZBNxnU+Jd9pXR/E6FBZFp6TWsskbwtBjWobPv +jo5qEuMDN60mwNhNuSYx0QHh9W6/HYSXszCZj+NBE78lnxr8n0Qr/f+hB+xZnqyWptJFGlHN lErPS/51PkEalJiLfvhtpYmTCUNPbJxhUY2EMuREnAaXFM6DswhziqVW1ncJv9A9XfnOvW6WD BSaebHhWLm/pYYzOjjMUlc/wDg2S+6q81+YecHI9p7sqM0BzMKPleMcscQxitvrvpwfqijMH6 PmOktLdRwAbfoOapfx/rJob/miA8hPY2Y6xeAC6YP8BU3eGMwCAOIa4Bjyn8j24Q+N+aayz4N bZNS6RiCogeH/9BkfNkpQv6bUTQEQu List-ID: Precedence: bulk Bj=C3=B8rn Mork writes: > Is there a nice way to always sign emails based on e.g. the current > From > address? I don't want to sign everything, but I would like to sign all > emails I send from one specific address. > > I'm using gnus-posting-styles to automatically set up things like from > address, default headers and signature based on context. But I can't > figure out how to enable automatic signing. A simple approach like > adding > > (body "<#secure method=3Dpgpmime mode=3Dsign>") > > to an existing posting style rule sort of works. But it fails on > replies with quoted original text. The body text end up between the > quoted text and the signature, which obviously makes sense for any > real > body. But the mml tag is not recognised and is sent verbatim. > > I tried adding the tag in more complicated ways, using posting style > eval and a function inserting the mml tag on the first line of the > body. > But the message buffer is always empty when this runs, so that doesn't > work any better. The tag still ends up the same place. > > I guess I'm looking at this the wrong way. But I'm stuck. > > (My elisp skills are extremely limited, so I didn't want to > re-implement > the posting style context matching in a sending hook or similar. > That's > way out of my league) This seems to work: (setq gnus-posting-styles '((t (eval (setq-local message-cite-reply-position 'above)) (body "<#secure method=3Dpgpmime mode=3Dsign>")))) Regards, James