From 357aba3ec8177c11a7ce22cbe26d92482f6a5e53 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 6 Nov 2009 10:00:38 -0800 Subject: notmuch reply: Add (incomplete) reply command Reviewed-by: Carl Worth Keith wrote all the code here against notmuch before notmuch.c was split up into multiple files. So I've pushed the code around in various ways to match the new code structure, but have generally tried to avoid making any changes to the behavior of the code. I did fix one bug---a missing call to g_mime_stream_file_set_owner in show_part which would cause "notmuch show" to go off into the weeds when trying to show multiple messages, (since the first stream would fclose stdout). --- notmuch-client.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'notmuch-client.h') diff --git a/notmuch-client.h b/notmuch-client.h index 50f31fa1..f39900a9 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -102,6 +102,9 @@ notmuch_dump_command (void *ctx, int argc, char *argv[]); int notmuch_new_command (void *ctx, int argc, char *argv[]); +int +notmuch_reply_command (void *ctx, int argc, char *argv[]); + int notmuch_restore_command (void *ctx, int argc, char *argv[]); @@ -117,13 +120,6 @@ notmuch_show_command (void *ctx, int argc, char *argv[]); int notmuch_tag_command (void *ctx, int argc, char *argv[]); -notmuch_status_t -add_files (notmuch_database_t *notmuch, const char *path, - add_files_state_t *state); - -char * -query_string_from_args (void *ctx, int argc, char *argv[]); - const char * notmuch_time_relative_date (void *ctx, time_t then); @@ -133,4 +129,15 @@ notmuch_time_print_formatted_seconds (double seconds); double notmuch_time_elapsed (struct timeval start, struct timeval end); +notmuch_status_t +add_files (notmuch_database_t *notmuch, const char *path, + add_files_state_t *state); + +char * +query_string_from_args (void *ctx, int argc, char *argv[]); + +notmuch_status_t +show_message_body (const char *filename, + void (*show_part) (GMimeObject *part, int *part_count)); + #endif -- cgit v1.2.3