unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Michael Hudson-Doyle <michael.hudson@canonical.com>
To: Jameson Graef Rollins <jrollins@finestructure.net>,
	Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: auto-choosing reply addresses in notmuch-emacs
Date: Tue, 18 Nov 2014 21:17:05 -0600	[thread overview]
Message-ID: <87ppcjq3pq.fsf@canonical.com> (raw)
In-Reply-To: <87vbmhmrnb.fsf@servo.finestructure.net>

[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]

Jameson Graef Rollins <jrollins@finestructure.net> writes:

> Hi, folks.  I wonder if anyone knows of a way to tell the emacs client
> to use different email addresses to respond to mail from different
> sources.  So for instance, I would like to respond to mail to one
> mailing list from one address, and to another mailing list from a
> different address.  Ideally I would be able to set up some sort of
> filter rules such that if the mail is from ".*@example.com" I would
> respond with my me@example.com address, and if the mail is from
> ".*@example.org" I would respond with my jrollins@finestructure.net
> address.
>
> Does anyone already do anything like this?  I would how hard it would be
> to setup built-in support for something like that.  Given that notmuch
> generates replies, maybe we could add it to the notmuch cli somehow,
> with some new config fields?

You can use gnus-alias for this.  Put

(autoload 'gnus-alias-determine-identity "gnus-alias" "" t)
(add-hook 'message-setup-hook 'gnus-alias-determine-identity)

in .emacs and then M-x customize-group gnus-alias.  I would be more
helpful but I no longer need this functionality and have forgotten how
it works :)

Cheers,
mwh

[-- Attachment #2: Type: application/pgp-signature, Size: 818 bytes --]

      reply	other threads:[~2014-11-19  3:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-14 20:52 auto-choosing reply addresses in notmuch-emacs Jameson Graef Rollins
2014-11-19  3:17 ` Michael Hudson-Doyle [this message]

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

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ppcjq3pq.fsf@canonical.com \
    --to=michael.hudson@canonical.com \
    --cc=jrollins@finestructure.net \
    --cc=notmuch@notmuchmail.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.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).