aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorGravatar Peter Wang <novalazy@gmail.com>2013-06-23 22:20:45 +1000
committerGravatar David Bremner <bremner@debian.org>2013-06-29 14:42:20 -0300
commit9439a1ec0cbb60e75925a5a17e8284fcaccf51df (patch)
tree0c30237c89982cfd5e108b0fd37c223a36e31235 /notmuch-client.h
parentf00c925bd10c024d5b9f88d8903c7a0d14e9cc6a (diff)
cli: add insert command
The notmuch insert command reads a message from standard input, writes it to a Maildir folder, and then incorporates the message into the notmuch database. Essentially it moves the functionality of notmuch-deliver into notmuch. Though it could be used as an alternative to notmuch new, the reason I want this is to allow my notmuch frontend to add postponed or sent messages to the mail store and notmuch database, without resorting to another tool (e.g. notmuch-deliver) nor directly modifying the maildir.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index 45749a6b..da332f36 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -180,6 +180,9 @@ int
notmuch_new_command (notmuch_config_t *config, int argc, char *argv[]);
int
+notmuch_insert_command (notmuch_config_t *config, int argc, char *argv[]);
+
+int
notmuch_reply_command (notmuch_config_t *config, int argc, char *argv[]);
int