From 9439a1ec0cbb60e75925a5a17e8284fcaccf51df Mon Sep 17 00:00:00 2001 From: Peter Wang Date: Sun, 23 Jun 2013 22:20:45 +1000 Subject: 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. --- notmuch.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'notmuch.c') 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, -- cgit v1.2.3