From: dick.r.chiang@gmail.com
To: ding@gnus.org
Subject: Re: how can I convert the To field to CC
Date: Sat, 20 Feb 2021 23:09:17 -0500 [thread overview]
Message-ID: <874ki6dpua.fsf@dick> (raw)
In-Reply-To: <87h7m63xx4.fsf@zoho.eu> (Emanuel Berg's message of "Sun, 21 Feb 2021 04:24:55 +0100")
Oh boy, I guess we have to "go there" although I didn't think Herr Brauer's
original itch needed to scratch an empty To or Cc.
(defun my/message-swap-to-cc ()
(interactive)
(message-goto-to)
(message-goto-cc)
(let ((to (or (message-field-value "To") "")))
(message-replace-header "To" (or (message-field-value "Cc") "") "From" t)
(message-replace-header "Cc" to "To" t)))
next prev parent reply other threads:[~2021-02-21 4:09 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-19 20:57 Uwe Brauer
2021-02-19 21:09 ` Emanuel Berg
2021-02-20 1:10 ` Emanuel Berg
2021-02-20 10:16 ` Uwe Brauer
2021-02-20 19:03 ` Emanuel Berg
2021-02-20 22:27 ` Uwe Brauer
2021-02-20 22:39 ` Emanuel Berg
2021-02-20 10:21 ` Uwe Brauer
2021-02-20 19:02 ` Emanuel Berg
2021-02-20 22:26 ` Uwe Brauer
2021-02-20 22:31 ` Uwe Brauer
2021-02-20 23:10 ` dick.r.chiang
2021-02-21 0:24 ` Emanuel Berg
2021-02-21 0:36 ` Emanuel Berg
2021-02-21 3:03 ` dick.r.chiang
2021-02-21 3:18 ` Emanuel Berg
2021-02-21 4:13 ` dick.r.chiang
2021-02-21 2:55 ` dick.r.chiang
2021-02-21 3:24 ` Emanuel Berg
2021-02-21 4:09 ` dick.r.chiang [this message]
2021-02-21 4:47 ` Emanuel Berg
2021-02-21 9:18 ` Uwe Brauer
2021-02-21 9:36 ` Emanuel Berg
2021-03-01 7:40 ` Uwe Brauer
2021-03-02 2:57 ` Emanuel Berg
2021-03-02 3:38 ` Emanuel Berg
2021-03-01 7:44 ` Uwe Brauer
2021-03-02 2:55 ` Emanuel Berg
2021-05-09 4:45 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874ki6dpua.fsf@dick \
--to=dick.r.chiang@gmail.com \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).