diff options
author | Keith Packard <keithp@keithp.com> | 2009-11-06 10:00:38 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-11-10 13:32:02 -0800 |
commit | 357aba3ec8177c11a7ce22cbe26d92482f6a5e53 (patch) | |
tree | 33f04c027b4de0b525a695878540bfc14e5da563 /notmuch.c | |
parent | 50144f95cababfb73027ca95ad1fb303c235a893 (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.c')
-rw-r--r-- | notmuch.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,6 +1,7 @@ /* notmuch - Not much of an email program, (just index and search) * * Copyright © 2009 Carl Worth + * Copyright © 2009 Keith Packard * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,7 +16,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see http://www.gnu.org/licenses/ . * - * Author: Carl Worth <cworth@cworth.org> + * Authors: Carl Worth <cworth@cworth.org> + * Keith Packard <keithp@keithp.com> */ #include "notmuch-client.h" @@ -82,6 +84,19 @@ command_t commands[] = { "\t\tthe Boolean operators, but will have to be protected from\n" "\t\tinterpretation by the shell, (such as by putting quotation\n" "\t\tmarks around any parenthesized expression)." }, + { "reply", notmuch_reply_command, + "<search-terms> [...]\n\n" + "\t\tFormats a reply from a set of existing messages.", + "\t\tConstructs a new message as a reply to a set of existing\n" + "\t\tmessages. The From: address is used as a To: address\n" + "\t\talong with all old To: addresses. All of the Cc: addresses\n" + "\t\tare copied as new Cc: addresses. An In-Reply-To: header\n" + "\t\twill be constructed from the name and date of the original\n" + "\t\tmessage, and the original Message-ID will be added to the\n" + "\t\tlist of References in the new message. The text of each\n" + "\t\tmessage (as described in the \"show\" command) will be\n" + "\t\tpresented, each line prefixed with \"> \" The resulting\n" + "\t\tmessage will be dumped to stdout." }, { "show", notmuch_show_command, "<search-terms> [...]\n\n" "\t\tShows all messages matching the search terms.", |