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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 81FF9217F9 for ; Fri, 29 Nov 2024 15:49:32 +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 1tH2JC-000000052eK-0Hnz for ml@inbox.vuxu.org; Fri, 29 Nov 2024 08:49:29 -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 1tH2JA-00000007MQS-3rqq for ml@inbox.vuxu.org; Fri, 29 Nov 2024 08:49:24 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.97.1) (envelope-from ) id 1tH2J9-00000007MQM-20uo for ding@lists.math.uh.edu; Fri, 29 Nov 2024 08:49:23 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1tH2J4-000000040y5-3Vjk for ding@lists.math.uh.edu; Fri, 29 Nov 2024 08:49:23 -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:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PCCn4QdT3OUb1R3myXXklcX9OR3D7NwTY+Uh2rtEbac=; b=p2In9TVxAW9blswpbQ+XOgco3k gb1HGLNms2dKXSn5F8O8kDBVXJerygDWCm3b/AT/pLub8vCSSyBwMmNA9mA04W/uhTil1ozDm3DqC FIz/sh6CL6yfZ+lGHruB3ovEyiqazvlxjvcCFSMys/iKIU/nI0d9HXj8MDbtfi/wWrJI=; Received: from dilbert.mork.no ([2a01:4f9:c010:a439::d]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tH2Ix-00010U-S6 for ding@gnus.org; Fri, 29 Nov 2024 15:49:13 +0100 Authentication-Results: dilbert.mork.no; dkim=pass (1024-bit key; secure) header.d=mork.no header.i=@mork.no header.a=rsa-sha256 header.s=b header.b=WWO1UMIb; dkim-atps=neutral Received: from canardo.dyn.mork.no ([IPv6:2a01:799:10de:2e00:0:0:0:1]) (authenticated bits=0) by dilbert.mork.no (8.18.1/8.18.1) with ESMTPSA id 4ATEn9R4334968 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK) for ; Fri, 29 Nov 2024 14:49:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mork.no; s=b; t=1732891749; bh=PCCn4QdT3OUb1R3myXXklcX9OR3D7NwTY+Uh2rtEbac=; h=From:To:Subject:Date:Message-ID:From; b=WWO1UMIbbhNrlhPPZRqX9vkmnRt8KxDAruzj9ersv1dBe8hXQIFTYCYuma/XokHHe 4bNcPqlQCaiSaFFflAj2U4/n2+1sjzfzoSN2AILOgJUkqOBYDp9q+aIRVzqT9z5AC7 r+8QW/Xr4iXADD4bIK06RDwrGtwzVkqPa4E4S0W4= Received: from miraculix.mork.no ([IPv6:2a01:799:10de:2e0a:149a:2079:3a3a:3457]) (authenticated bits=0) by canardo.dyn.mork.no (8.18.1/8.18.1) with ESMTPSA id 4ATEn84A1149982 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK) for ; Fri, 29 Nov 2024 15:49:09 +0100 Received: (nullmailer pid 351278 invoked by uid 1000); Fri, 29 Nov 2024 14:49:08 -0000 From: =?utf-8?Q?Bj=C3=B8rn_Mork?= To: ding@gnus.org Subject: What's the best way to auto-sign some emails but not all? Organization: m User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Date: Fri, 29 Nov 2024 15:49:08 +0100 Message-ID: <871pyuksd7.fsf@miraculix.mork.no> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: clamav-milter 1.0.7 at canardo.mork.no X-Virus-Status: Clean List-ID: Precedence: bulk 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) Bj=C3=B8rn