diff options
author | David Edmondson <dme@dme.org> | 2010-03-24 07:21:20 +0000 |
---|---|---|
committer | David Edmondson <dme@dme.org> | 2010-04-02 09:43:03 +0100 |
commit | 2e9c7aba99598eafd7b5fc52897da14ea13af216 (patch) | |
tree | 51a832c9dd92319c81735db321d35e13018ccb79 /notmuch-client.h | |
parent | 930a47935fcd87ff4ae6c0c14279fd136f5bd78b (diff) |
notmuch: Add a 'part' subcommand
A new 'part' subcommand allows the user to extract a single part from
a MIME message. Usage:
notmuch part --part=<n> <search terms>
The search terms must match only a single message
(e.g. id:foo@bar.com). The part number specified refers to the part
identifiers output by `notmuch show'. The content of the part is
written the stdout with no formatting or identification marks. It is
not JSON formatted.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index c80b39cb..0fa8fa5d 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -107,6 +107,9 @@ notmuch_tag_command (void *ctx, int argc, char *argv[]); int notmuch_search_tags_command (void *ctx, int argc, char *argv[]); +int +notmuch_part_command (void *ctx, int argc, char *argv[]); + const char * notmuch_time_relative_date (const void *ctx, time_t then); @@ -123,6 +126,9 @@ notmuch_status_t show_message_body (const char *filename, void (*show_part) (GMimeObject *part, int *part_count)); +notmuch_status_t +show_one_part (const char *filename, int part); + char * json_quote_str (const void *ctx, const char *str); |