unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/2] Notmuch cat v2
@ 2010-10-22  9:28 Michal Sojka
  2010-10-22  9:28 ` [PATCH 1/2] Add 'cat' subcommand Michal Sojka
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michal Sojka @ 2010-10-22  9:28 UTC (permalink / raw)
  To: notmuch

Hi all,

this is my second attempt to implement notmuch cat subcommand (the
first version was posted in
id:1271747793-17507-1-git-send-email-sojkam1@fel.cvut.cz). This
subcommand outputs the given message to stdout.

In this version the arguments are classical notmuch search terms and
not a filename as in the previous version. Emacs interface then uses
message-id to retrieve the message.

Some people suggested that cat could be implemented as a special
format of show subcommand. That would be possible, but it seems that
show command always constructs threads form the messages which means
that is executes several database queries. I consider this as
unnecessary overhead and for that reason cat is a separate subcommand.

Michal Sojka (2):
  Add 'cat' subcommand
  emacs: Access raw messages via cat subcommand

 emacs/notmuch-show.el |   14 +++++---
 notmuch-client.h      |    3 ++
 notmuch-show.c        |   83 +++++++++++++++++++++++++++++++++++++++++++++++++
 notmuch.1             |    4 ++
 notmuch.c             |    4 ++
 test/cat              |   38 ++++++++++++++++++++++
 test/notmuch-test     |    2 +-
 7 files changed, 142 insertions(+), 6 deletions(-)
 create mode 100755 test/cat

-- 
1.7.2.3

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-22  9:28 [PATCH 0/2] Notmuch cat v2 Michal Sojka
2010-10-22  9:28 ` [PATCH 1/2] Add 'cat' subcommand Michal Sojka
2010-10-22  9:28 ` [PATCH 2/2] emacs: Access raw messages via cat subcommand Michal Sojka
2010-11-04 19:25 ` [PATCH 0/2] Notmuch cat v2 Carl Worth

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