unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/4] Quoting HTML-only emails in replies redux
@ 2012-01-08  7:52 Adam Wolfe Gordon
  2012-01-08  7:52 ` [PATCH 1/4] test: Add broken test for the new JSON reply format Adam Wolfe Gordon
                   ` (5 more replies)
  0 siblings, 6 replies; 24+ messages in thread
From: Adam Wolfe Gordon @ 2012-01-08  7:52 UTC (permalink / raw)
  To: notmuch, awg

From: Adam Wolfe Gordon <awg@xvx.ca>

Hi everyone,

This is a rework of my previous patch series adding support for replying to HTML
email in the emacs interface
(id:1322671241-23438-1-git-send-email-awg+notmuch@xvx.ca).

It was suggested on IRC that a more general solution would be to add a JSON
format to notmuch reply, and then have the emacs client parse the JSON to create
an appropriate reply. This patchset implements that.

The previous patches had an issue with emails that contained both HTML and
plaintext parts, where all the parts would end up quoted. This version avoids
that problem, since the emacs interface can easily check whether there are
plaintext parts and avoid quoting HTML parts if there are.

There should probably be some customize variables for this in emacs, to control
(for example) whether to quote HTML parts and whether to prefer HTML or
plaintext parts for quoting. Any suggestions for what should be customizable
would be appreciated.

I know Jani is currently working on some reply-related patches (the reply-all
vs. reply-one set). These changes probably won't merge cleanly with those
changes, so some care might be required. If his changes are pushed first, I'll
happily rebase and send a new set.

Thanks in advance for any reviews.

Adam Wolfe Gordon (4):
  test: Add broken test for the new JSON reply format.
  reply: Add a JSON reply format.
  man: Update notmuch-reply man page for JSON format.
  emacs: Use the new JSON reply format.

 emacs/notmuch-mua.el     |   62 +++++++++---
 man/man1/notmuch-reply.1 |    5 +
 notmuch-reply.c          |  269 +++++++++++++++++++++++++++++++++++++++-------
 test/emacs               |    1 +
 test/multipart           |    7 ++
 5 files changed, 292 insertions(+), 52 deletions(-)

-- 
1.7.5.4

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

end of thread, other threads:[~2012-01-16 22:42 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-08  7:52 [PATCH 0/4] Quoting HTML-only emails in replies redux Adam Wolfe Gordon
2012-01-08  7:52 ` [PATCH 1/4] test: Add broken test for the new JSON reply format Adam Wolfe Gordon
2012-01-08  7:52 ` [PATCH 2/4] reply: Add a " Adam Wolfe Gordon
2012-01-14 20:58   ` Jani Nikula
2012-01-08  7:52 ` [PATCH 3/4] man: Update notmuch-reply man page for JSON format Adam Wolfe Gordon
2012-01-08  7:52 ` [PATCH 4/4] emacs: Use the new JSON reply format Adam Wolfe Gordon
2012-01-09  1:27   ` Aaron Ecay
2012-01-10  1:59     ` Adam Wolfe Gordon
2012-01-09  8:50   ` David Edmondson
2012-01-10  2:10     ` Adam Wolfe Gordon
2012-01-10  7:25       ` David Edmondson
2012-01-12  8:33       ` Dmitry Kurochkin
2012-01-12 12:07         ` David Edmondson
2012-01-12 13:36           ` Tomi Ollila
2012-01-12 13:43             ` David Edmondson
2012-01-15 21:19         ` Adam Wolfe Gordon
2012-01-09  1:36 ` [PATCH 0/4] Quoting HTML-only emails in replies redux Aaron Ecay
2012-01-10  1:53   ` Adam Wolfe Gordon
2012-01-15  9:26 ` David Edmondson
2012-01-16  7:38   ` Aaron Ecay
2012-01-16  8:39     ` David Edmondson
2012-01-16 19:29       ` Jameson Graef Rollins
2012-01-16 22:31       ` Aaron Ecay
2012-01-16 22:42         ` Adam Wolfe Gordon

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