Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Alexander Baier <alexander.baier@mailbox.org>
Cc: info-gnus-english@gnu.org
Subject: Re: More than one user-mail-address
Date: Sat, 10 May 2014 17:08:02 +0300	[thread overview]
Message-ID: <8738ghengd.fsf@mithlond.arda> (raw)
In-Reply-To: <87d2fl50w0.fsf@mailbox.org> (Alexander Baier's message of "Sat,  10 May 2014 13:27:59 +0200")


[-- Attachment #1.1: Type: text/plain, Size: 714 bytes --]

Alexander Baier [2014-05-10 13:27:59 +02:00] wrote:

> Mails with a From: header matching user-mail-address are shown
> differently in the summary view:

> Is there a way to configure multiple addresses?

Yes. There are a couple of variables for that. I use a code piece like
the one below to set the variables.


    (let ((addr '("primary.address@somewhere.invalid"
                  "another.address@isp.invalid"
                  "yet.another@address.invalid")))

      (setq-default
       user-mail-address (car addr)
       message-alternative-emails (regexp-opt (cdr addr) 'words)
       message-dont-reply-to-names (regexp-opt addr 'words)
       gnus-ignored-from-addresses message-dont-reply-to-names))

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 835 bytes --]



  parent reply	other threads:[~2014-05-10 14:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-10 11:27 Alexander Baier
2014-05-10 12:23 ` Adam Sjøgren
2014-05-10 12:52   ` Alexander Baier
2014-05-10 14:08 ` Teemu Likonen [this message]
2014-05-10 16:46   ` Alexander Baier

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=8738ghengd.fsf@mithlond.arda \
    --to=tlikonen@iki.fi \
    --cc=alexander.baier@mailbox.org \
    --cc=info-gnus-english@gnu.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).