Gnus development mailing list
 help / color / mirror / Atom feed
From: Russ Allbery <eagle@eyrie.org>
To: ding@gnus.org
Subject: Re: Multiple Email Addresses in user-mail-address
Date: Wed, 15 Nov 2023 22:19:42 -0800	[thread overview]
Message-ID: <87il628bk1.fsf@hope.eyrie.org> (raw)
In-Reply-To: <87ttpmv16o.fsf@> (Husain Alshehhi's message of "Wed, 15 Nov 2023 21:15:11 -0600")

Husain Alshehhi <husain@alshehhi.io> writes:

> In the normal case, when I own a single email address, this can be done
> by setting user-mail-address. Gnus respects this value and automatically
> exclude this address from TO and CC. But I am not sure how to do this
> when I own two email addresses.

You can set message-dont-reply-to-names to a regex, list of regexes, or a
function that matches all of the addresses that you want to exclude.  For
example:

(custom-set-variables
 '(message-dont-reply-to-names
   (mapconcat 'regexp-quote
              '("eagle@eyrie.org" "rra@debian.org")
              "\\|")))

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>


  reply	other threads:[~2023-11-16  7:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-16  3:15 Husain Alshehhi
2023-11-16  6:19 ` Russ Allbery [this message]
2023-11-17  3:10   ` Husain Alshehhi

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=87il628bk1.fsf@hope.eyrie.org \
    --to=eagle@eyrie.org \
    --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).