unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [RFC][PATCH v1] Allow content preference based on message content.
@ 2016-01-15 13:34 David Edmondson
  2016-01-15 13:34 ` [PATCH v1] emacs: Allow part preferences to depend " David Edmondson
  0 siblings, 1 reply; 4+ messages in thread
From: David Edmondson @ 2016-01-15 13:34 UTC (permalink / raw)
  To: notmuch


Previously in #notmuch we discussed how it would be convenient to
control part preferences on the basis of message attributes. This
patch is an attempt to provide that.

My own setting for `notmuch-multipart/alternative-discouraged' is:

(setq notmuch-multipart/alternative-discouraged
    '(cond
      ((string-match "9195404@capita-intouch.co.uk" from)
       '("text/plain"))
      (t
       '("text/html" "multipart/related"))))

That is, discourage text/plain and multipart/related unless the
message is sent from 9195404@capita-intouch.co.uk, in which case
discourage text/plain (which for this sender is always another copy of
the HTML content, as HTML).

David Edmondson (1):
  emacs: Allow part preferences to depend on message content.

 emacs/notmuch-lib.el  | 39 +++++++++++++++++++++++++++++++++++----
 emacs/notmuch-mua.el  |  2 +-
 emacs/notmuch-show.el |  2 +-
 3 files changed, 37 insertions(+), 6 deletions(-)

-- 
2.2.0

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

end of thread, other threads:[~2016-01-19 14:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-15 13:34 [RFC][PATCH v1] Allow content preference based on message content David Edmondson
2016-01-15 13:34 ` [PATCH v1] emacs: Allow part preferences to depend " David Edmondson
2016-01-19 13:41   ` Aaron Ecay
2016-01-19 14:36     ` David Edmondson

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