unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/2] Control guessing of the from-address when replying
@ 2012-02-04 17:09 Mark Walters
  2012-02-04 17:09 ` [PATCH 1/2] cli: add --from option to reply to restrict guessing of the From: header Mark Walters
  2012-02-04 17:09 ` [PATCH 2/2] emacs: Improve prompting for user address when replying Mark Walters
  0 siblings, 2 replies; 7+ messages in thread
From: Mark Walters @ 2012-02-04 17:09 UTC (permalink / raw)
  To: notmuch


Hello

This patch sets is intended to allow the user more control over the
From: address when replying to emails. 

In notmuch-reply.c the current logic for the From: address looks as
the main headers, then at the delivery headers, and finally defaults
to the config file address. This means that the frontends (e.g. emacs)
cannot tell whether the users primary address is in the From: header
because the message being replied to was sent to that address, or
notmuch just fellback to using it as it had no better guess. 

The first patch allows the user to control which fallbacks are
used. The second implements this in emacs so that it does not fallback
to the primary address; thus, in this case, emacs can ask for the
address (if notmuch-always-prompt-for-sender is set). The set is not
heavily tested but appears to work.

There is some bikeshedding available as to what options we should be
able to pass to the --from= in notmuch-reply.c.

It obviously also needs some tests and some man pages updates.

Finally, we may want a defcustom option for emacs to control which it
uses (e.g., the user always wants to reply from ther primary address).


Best wishes

Mark

                  

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-04 19:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-04 17:09 [PATCH 0/2] Control guessing of the from-address when replying Mark Walters
2012-02-04 17:09 ` [PATCH 1/2] cli: add --from option to reply to restrict guessing of the From: header Mark Walters
2012-02-04 17:59   ` Jani Nikula
2012-02-04 19:07     ` Mark Walters
2012-02-04 17:09 ` [PATCH 2/2] emacs: Improve prompting for user address when replying Mark Walters
2012-02-04 18:03   ` Jani Nikula
2012-02-04 19:12     ` Mark Walters

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).