aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorGravatar Keith Packard <keithp@keithp.com>2009-11-06 10:00:38 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-10 13:32:02 -0800
commit357aba3ec8177c11a7ce22cbe26d92482f6a5e53 (patch)
tree33f04c027b4de0b525a695878540bfc14e5da563 /notmuch-client.h
parent50144f95cababfb73027ca95ad1fb303c235a893 (diff)
notmuch reply: Add (incomplete) reply command
Reviewed-by: Carl Worth <cworth@cworth.org> 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).
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index 50f31fa1..f39900a9 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -103,6 +103,9 @@ 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[]);
int
@@ -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