unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH v5 0/4] Reply enhancements (was: quoting HTML email ...)
@ 2012-02-15  5:00 Adam Wolfe Gordon
  2012-02-15  5:00 ` [PATCH v5 1/4] test: Add broken test for the new JSON reply format Adam Wolfe Gordon
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Adam Wolfe Gordon @ 2012-02-15  5:00 UTC (permalink / raw)
  To: notmuch, amdragon

Hi everyone,

There are relatively few changes from the last version [1], but the JSON
format has big changes again. A summary of all the changes:

* The JSON reply format now uses the new formatter from the show JSON
  format. This means that the MUA will not need to call notmuch show
  for text/* parts, except HTML, as the content of those parts will be
  included in the JSON output.

* The JSON reply format has changed in a few other minor ways, due to
  reusing the show code.

* Because the original message is now included in the reply format, the
  old show behavior of --format=json implies --entire-thread is reinstated.
  I still think this is a weird behavior, but there's no good reason to
  change it.

* The emacs code is simplified a bit by the changes to the JSON format, but
  its behavior is basically the same.

* Man pages and tests changed to reflect the above changes.

Note that, as implied above, this series relies on Austin's rewrite of the
show JSON formatter [2]. I should probably add the reply JSON format to
the devel/schemata file, but I'll leave that for another patch (perhaps
in a series with a news entry if this is deemed ready to push).

Thanks to everyone for the replies on previous versions, and please let
me know if you have any comments. Also, it would be great if others can
test this out on some interesting messages, as my email collection is
not very esoteric.

[1] id:"1328746916-25447-1-git-send-email-awg+notmuch@xvx.ca"
[2] id:"1329240823-7856-1-git-send-email-amdragon@mit.edu"

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 and message-cite-original

 emacs/notmuch-lib.el     |   39 +++++++++++
 emacs/notmuch-mua.el     |  123 +++++++++++++++++++++++++----------
 emacs/notmuch-show.el    |   24 +------
 man/man1/notmuch-reply.1 |    5 ++
 notmuch-client.h         |    3 +
 notmuch-reply.c          |  164 ++++++++++++++++++++++++++++++++++------------
 notmuch-show.c           |    2 +-
 test/emacs               |  101 ++++++++++++++++++++++++++++-
 test/multipart           |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 9 files changed, 365 insertions(+), 103 deletions(-)

-- 
1.7.5.4

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

end of thread, other threads:[~2012-02-15  5:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-15  5:00 [PATCH v5 0/4] Reply enhancements (was: quoting HTML email ...) Adam Wolfe Gordon
2012-02-15  5:00 ` [PATCH v5 1/4] test: Add broken test for the new JSON reply format Adam Wolfe Gordon
2012-02-15  5:41   ` [PATCH v5.1 " Adam Wolfe Gordon
2012-02-15  5:00 ` [PATCH v5 2/4] reply: Add a " Adam Wolfe Gordon
2012-02-15  5:42   ` [PATCH v5.1 " Adam Wolfe Gordon
2012-02-15  5:00 ` [PATCH v5 3/4] man: Update notmuch-reply man page for JSON format Adam Wolfe Gordon
2012-02-15  5:00 ` [PATCH v5 4/4] emacs: Use the new JSON reply format and message-cite-original Adam Wolfe Gordon
2012-02-15  5:42   ` [PATCH v5.1 " Adam Wolfe Gordon
2012-02-15  5:44 ` [PATCH v5 0/4] Reply enhancements (was: quoting HTML email ...) 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).