From mboxrd@z Thu Jan 1 00:00:00 1970 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_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2399 invoked from network); 20 Jan 2022 22:08:41 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 20 Jan 2022 22:08:41 -0000 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.94.2) (envelope-from ) id 1nAfbh-00Fpu2-Iu for ml@inbox.vuxu.org; Thu, 20 Jan 2022 16:08:38 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1nAfbg-003HhE-Uq for ml@inbox.vuxu.org; Thu, 20 Jan 2022 16:08:36 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nAfbf-003Hh7-Rf for ding@lists.math.uh.edu; Thu, 20 Jan 2022 16:08:35 -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.94.2) (envelope-from ) id 1nAfbd-006JI5-Je for ding@lists.math.uh.edu; Thu, 20 Jan 2022 16:08:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:Message-ID:Date:Subject:From:To: Sender:Reply-To:Cc:Content-Transfer-Encoding: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=6gOf4PE7Sh/iuoPqCPa/P5kpLk6y3f76OcjzxKN3hQg=; b=GVpgr+r0Wcbu872XXrUUtvtOUB gblcq4klh1eu8HuXjFHLM9MOMOh8Xl4YbDL/V2pXrAe+lPCP2F8cdDdXmryXeUoAzxvrtdZTWPUba t+ujpwjHuYxksay+Jm/dasiAZ4H0VeqX1RSiE8b0T9js+CcxPyWOgfUljUUxd94Qy74A=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAfbW-0001Or-6i for ding@gnus.org; Thu, 20 Jan 2022 23:08:28 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nAfbT-0002q7-Sz for ding@gnus.org; Thu, 20 Jan 2022 23:08:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Uwe Brauer Subject: how to add a specific word at beginning Subject line (Subject already exists) Date: Thu, 20 Jan 2022 23:08:19 +0100 Message-ID: <87wniugiwc.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:JrhHJE1QcrRZCq586bC7UmZsTXg= Mail-Copies-To: never Header: Newsgroups List-ID: Precedence: bulk Hi I have a function, most likely based on ancient code (based on 2.35) that inserts a word or expression in the subject line, according to a special field in the BBDB entry. That code works nicely, however if I use it to reply to a message, that already has a subject then that expression is added at the end of the subject line not at the beginning. The relevant code is the line (message-carefully-insert-headers (list (cons 'Subject signame))) So cons seems her the culprit. Any idea how to modify the line above to have the expression inserted always at the beginning? I had a look at message-change-subject. That function however is rather complicated. So if somebody comes up with a simple solution I would appreciate it Thanks Uwe Brauer