From d39d0e55f09d8cc2ba9683ec5622068bb7373f2a Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 22 Oct 2010 11:28:03 +0200 Subject: Add 'cat' subcommand This command outputs a raw message matched by search term to the standard output. It allows MUAs to access the messages for piping, attachment manipulation, etc. by running notmuch cat rather then directly access the file. This will simplify the MUAs when they need to operate on a remote database. Edited-by: Carl Worth : Remove trailing whitespace, add missing "test_done" to new test script to avoid "Unexpected exit" error. --- notmuch-client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'notmuch-client.h') diff --git a/notmuch-client.h b/notmuch-client.h index d530578a..fdfb94ad 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -110,6 +110,9 @@ notmuch_tag_command (void *ctx, int argc, char *argv[]); int notmuch_search_tags_command (void *ctx, int argc, char *argv[]); +int +notmuch_cat_command (void *ctx, int argc, char *argv[]); + int notmuch_part_command (void *ctx, int argc, char *argv[]); -- cgit v1.2.3