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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3402 invoked from network); 20 Feb 2021 23:11:12 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 20 Feb 2021 23:11:12 -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) (envelope-from ) id 1lDbP5-003Ej2-4D for ml@inbox.vuxu.org; Sat, 20 Feb 2021 17:11:11 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1lDbP4-00DzN1-P6 for ml@inbox.vuxu.org; Sat, 20 Feb 2021 17:11:10 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lDbP2-00DzMt-M8 for ding@lists.math.uh.edu; Sat, 20 Feb 2021 17:11:08 -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) (envelope-from ) id 1lDbP1-0038tB-3D for ding@lists.math.uh.edu; Sat, 20 Feb 2021 17:11:08 -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:In-Reply-To:Date: References:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: 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=ZVSusoq9ct1KNJQx0gbZaQafpES8ejJLi8kSFwndkH8=; b=CXvq1gChuL2lor7DrABU7K8yZp IKnU0UnWsNSOLXkMANkeCuF2RYxNvtCZv6j624G3i3QPr9Y3qSHhdt+TUwipgcPXBagMunSrd02Gr EZ+xQeDT827svzhV9oWeRTQmFJ/TEXqAseLSXfavfLvQC8dHDx/wRPIfm7kfzkaqTLpk=; Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lDbOr-0000ho-9M for ding@gnus.org; Sun, 21 Feb 2021 00:11:02 +0100 Received: by mail-qk1-x735.google.com with SMTP id m144so9239355qke.10 for ; Sat, 20 Feb 2021 15:10:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=ZVSusoq9ct1KNJQx0gbZaQafpES8ejJLi8kSFwndkH8=; b=fmblpTaT6LQ/cNW23XgsG8MMJiM5susx3nrloGsyLwkc7J0/Ku1miAvP/CXth8EW4I qhCIq3slPQPZ073dkDd3Kx3D+qEuR4icdmQFzIJuLX7ze1603VqM4NeFau3ww29MZ2rF 6unh+mCU0o2cSeN1LMK4YbrdUcadi3AaVnwX/hyr/lrABkpmlBssABIUQuGUX/jqWgH5 BJzmCHPvH2dikrkQb6ct7qrjMAj6Vn0Nh5mHCouLOWyiYdbCqrO3r/sch6l4bE2JDUXG r1SZG669+vvhfAlqLeWVxY0AVQP4AsqKIOGpuv2pXyxOFVHcRZjY2ZMH47Dej4a+jC/a Ds0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ZVSusoq9ct1KNJQx0gbZaQafpES8ejJLi8kSFwndkH8=; b=rl9qHeIMw3kVEX0SlAXg+Ha69ivjKiNRaSENiuIC4Fe5Vn+I119v9midOGi2K7pcVo UIh8y2VBT01Jg6v9RUKNE7BsF24g4F1Bg6MdUd5LLWDnD4aFlRIFHPHo7bRbrTgWrUjt SxeGs8W7BE/jPUgdik4TJnR2cc5L17lLrazGasRT97ZY3kdUn2gZ4X7AsY3Zuq4w+tZX NPmb85kSu7oA0hGxiDLov460JWfFACH7D/JVMwisHaQrTiVd2Ih5zEf5fF0ZiqnrwgaW KDd3/gU/3eao/qZdbc2ZnigUpdz4MseUQg2NrgPyG9Js9NpJpuvXgDOuuw+L0apeyifd rKiA== X-Gm-Message-State: AOAM532AUDllaPWaiLIEPdhN54wv6dVKI5Z2CChmhaJITbdi/Dl9uBlt MubiHxt4VVYPDocRvRG9a9NLsU8zwi0= X-Google-Smtp-Source: ABdhPJzrMnQgFUHyX9mxYgtbDW5qf5hgxVhaAGv+E6eR9W/l27+GADGahpueo4/xgAHZLbMa1tMDAg== X-Received: by 2002:a05:620a:5b4:: with SMTP id q20mr14953375qkq.296.1613862653769; Sat, 20 Feb 2021 15:10:53 -0800 (PST) Received: from localhost (pool-71-190-212-171.nycmny.fios.verizon.net. [71.190.212.171]) by smtp.gmail.com with ESMTPSA id u20sm8518024qtb.63.2021.02.20.15.10.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 Feb 2021 15:10:53 -0800 (PST) From: dick.r.chiang@gmail.com To: ding@gnus.org Subject: Re: how can I convert the To field to CC References: <87k0r3kc70.fsf@mat.ucm.es> <87a6rzmtmw.fsf@zoho.eu> <87blcfghv2.fsf@mat.ucm.es> <87k0r27eao.fsf@zoho.eu> <87ft1qe5qd.fsf@mat.ucm.es> Date: Sat, 20 Feb 2021 18:10:52 -0500 In-Reply-To: <87ft1qe5qd.fsf@mat.ucm.es> (Uwe Brauer's message of "Sat, 20 Feb 2021 23:26:02 +0100") Message-ID: <87mtvye3nn.fsf@dick> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk I feel sufficient succor has been provided that you can take it the rest of the way. If that is not the case: (defun my/message-swap-to-cc () (interactive) (when-let ((to (message-field-value "To")) (cc (message-field-value "Cc"))) (message-replace-header "To" cc "From") (message-replace-header "Cc" to "To")))