From: Mark Walters Date: Sun, 18 Nov 2012 17:13:38 +0000 (+0000) Subject: Re: [PATCH 14/18] man: document 'insert' command X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0cdf39bb990264620257a057a5c6b050c35bde4c;p=notmuch-archives.git Re: [PATCH 14/18] man: document 'insert' command --- diff --git a/bc/0c6eb202b23ff7e239223bb9f4f086d746f0d2 b/bc/0c6eb202b23ff7e239223bb9f4f086d746f0d2 new file mode 100644 index 000000000..342688711 --- /dev/null +++ b/bc/0c6eb202b23ff7e239223bb9f4f086d746f0d2 @@ -0,0 +1,168 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 3C424431FB6 + for ; Sun, 18 Nov 2012 09:13:42 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -1.098 +X-Spam-Level: +X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5 + tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, + NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id lajPfCizhmN4 for ; + Sun, 18 Nov 2012 09:13:41 -0800 (PST) +Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 47922431FAF + for ; Sun, 18 Nov 2012 09:13:41 -0800 (PST) +Received: from smtp.qmul.ac.uk ([138.37.6.40]) + by mail2.qmul.ac.uk with esmtp (Exim 4.71) + (envelope-from ) + id 1Ta8R9-0008RP-HW; Sun, 18 Nov 2012 17:13:40 +0000 +Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost) + by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) + (envelope-from ) + id 1Ta8R9-0003aa-64; Sun, 18 Nov 2012 17:13:39 +0000 +From: Mark Walters +To: Peter Wang , notmuch@notmuchmail.org +Subject: Re: [PATCH 14/18] man: document 'insert' command +In-Reply-To: <1343223767-9812-14-git-send-email-novalazy@gmail.com> +References: <1343223767-9812-1-git-send-email-novalazy@gmail.com> + <1343223767-9812-14-git-send-email-novalazy@gmail.com> +User-Agent: Notmuch/0.14+81~g9730584 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Sun, 18 Nov 2012 17:13:38 +0000 +Message-ID: <87obiuq1fh.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Sender-Host-Address: 93.97.24.31 +X-QM-SPAM-Info: Sender has good ham record. :) +X-QM-Body-MD5: 3908b197edef21d25ad5cc13265f9c78 (of first 20000 bytes) +X-SpamAssassin-Score: -1.8 +X-SpamAssassin-SpamBar: - +X-SpamAssassin-Report: The QM spam filters have analysed this message to + determine if it is + spam. We require at least 5.0 points to mark a message as spam. + This message scored -1.8 points. + Summary of the scoring: + * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, + * medium trust + * [138.37.6.40 listed in list.dnswl.org] + * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail + provider * (markwalters1009[at]gmail.com) + * 0.5 AWL AWL: From: address is in the auto white-list +X-QM-Scan-Virus: ClamAV says the message is clean +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 18 Nov 2012 17:13:42 -0000 + +On Wed, 25 Jul 2012, Peter Wang wrote: +> Add initial documentation for notmuch insert command. +> --- +> man/Makefile.local | 1 + +> man/man1/notmuch-insert.1 | 50 +++++++++++++++++++++++++++++++++++++++++++++ +> 2 files changed, 51 insertions(+), 0 deletions(-) +> create mode 100644 man/man1/notmuch-insert.1 +> +> diff --git a/man/Makefile.local b/man/Makefile.local +> index d43a949..f91bfd4 100644 +> --- a/man/Makefile.local +> +++ b/man/Makefile.local +> @@ -12,6 +12,7 @@ MAN1 := \ +> $(dir)/man1/notmuch-count.1 \ +> $(dir)/man1/notmuch-dump.1 \ +> $(dir)/man1/notmuch-restore.1 \ +> + $(dir)/man1/notmuch-insert.1 \ +> $(dir)/man1/notmuch-new.1 \ +> $(dir)/man1/notmuch-reply.1 \ +> $(dir)/man1/notmuch-search.1 \ +> diff --git a/man/man1/notmuch-insert.1 b/man/man1/notmuch-insert.1 +> new file mode 100644 +> index 0000000..7d281b5 +> --- /dev/null +> +++ b/man/man1/notmuch-insert.1 +> @@ -0,0 +1,50 @@ +> +.TH NOTMUCH-INSERT 1 2012-xx-xx "Notmuch 0.xx" +> +.SH NAME +> +notmuch-insert \- add a message to the maildir and notmuch database +> +.SH SYNOPSIS +> + +> +.B notmuch insert +> +.RI "[" options "]" +> +.RI "--" +> +.RI "[ +<" tag> "|\-<" tag "> ... ]" +> + +> +.SH DESCRIPTION +> + +> +.B notmuch insert +> +reads a message from standard input and delivers it to the specified +> +maildir folder, then incorporates the message into the notmuch +> +database. It is an alternative to using a separate tool to deliver +> +the message then running +> +.B notmuch new +> +afterwards. +> + +> +The new message will be tagged with the tags specified by the +> +.B new.tags +> +configuration option. +> +Additional tagging operations may be specified on the command-line. +> +Tags prefixed by '+' are added while those prefixed by '\-' are +> +removed. notmuch will warn about ambiguous tag removal arguments +> +which may be confused with option arguments. It is recommended to use +> +the option list terminator "--" to avoid ambiguity. +> + +> +Supported options for +> +.B insert +> +include +> +.RS 4 +> +.TP 4 +> +.BI "--folder=<" folder ">" +> + +> +Deliver the message to the +> +.RI Maildir/ folder +> +directory, which must already exist. +> +The default is to deliver to the top-level directory. + +I think this should say something about notmuch database root: so that +by default it delivers to the top-level directory of the notmuch +database, and otherwise is relative to that. Maybe just replace Maildir +by something like "" or something? + +Best wishes + +Mark + + + +> + +> +.RE +> +.RE +> +.SH SEE ALSO +> + +> +\fBnotmuch\fR(1), \fBnotmuch-config\fR(1), \fBnotmuch-count\fR(1), +> +\fBnotmuch-dump\fR(1), \fBnotmuch-hooks\fR(5), \fBnotmuch-reply\fR(1), +> +\fBnotmuch-restore\fR(1), \fBnotmuch-search\fR(1), +> +\fBnotmuch-search-terms\fR(7), \fBnotmuch-show\fR(1), +> +\fBnotmuch-tag\fR(1) +> -- +> 1.7.4.4 +> +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch