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