aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
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.c
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.c')
-rw-r--r--notmuch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch.c b/notmuch.c
index ffe8f7e0..78d29a81 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -44,6 +44,8 @@ static command_t commands[] = {
"Interactively setup notmuch for first use." },
{ "new", notmuch_new_command, FALSE,
"Find and import new messages to the notmuch database." },
+ { "insert", notmuch_insert_command, FALSE,
+ "Add a new message into the maildir and notmuch database." },
{ "search", notmuch_search_command, FALSE,
"Search for messages matching the given search terms." },
{ "show", notmuch_show_command, FALSE,