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 34C0C431FDB for ; Thu, 24 Jan 2013 04:09:39 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 Lpf6a53qYkSg for ; Thu, 24 Jan 2013 04:09:38 -0800 (PST) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2A23A431E62 for ; Thu, 24 Jan 2013 04:09:35 -0800 (PST) Received: by mail-pb0-f48.google.com with SMTP id wy12so4041358pbc.7 for ; Thu, 24 Jan 2013 04:09:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=Fs8OBqnHa/QGdajf19+BycLi0aPjZ25O9SHGMttzFWU=; b=y6KEOcuf5ugiDwaO/Hmy4XijQZpqgLZR7HpJwUAPZi/nDimKXbmVayguCJHcR8XJ0e gbJz+ZII+tEdYGZGgMj16IUDb+rxJIN2YJklrPFAfSRGa+wUU0O8eFSQWNyAaVMubEG1 IQqLZZcRW5cbAjpkpi47SUa36fNEdaJS2shC9JS9egyJ32jm5jS6StZzafYJxOqyqxbX UrujuLSqE+tg9PTbXazM5jhZXrry12rURrMVScZX99ch3sGnebfJR6DnG67WrfnLokOt dmPjPgkUquLq2a61fXsh/mp85OP+JXm9LIVyw6B8TsMa3DkE2C3h+zr82y5xCBI/UrlQ 3lqQ== X-Received: by 10.68.220.6 with SMTP id ps6mr4193850pbc.80.1359029374387; Thu, 24 Jan 2013 04:09:34 -0800 (PST) Received: from localhost (215.42.233.220.static.exetel.com.au. [220.233.42.215]) by mx.google.com with ESMTPS id rq7sm14772536pbc.69.2013.01.24.04.09.32 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 24 Jan 2013 04:09:33 -0800 (PST) From: Peter Wang To: notmuch@notmuchmail.org Subject: [PATCH v4 04/12] man: document 'insert' command Date: Thu, 24 Jan 2013 23:08:00 +1100 Message-Id: <1359029288-12132-5-git-send-email-novalazy@gmail.com> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1359029288-12132-1-git-send-email-novalazy@gmail.com> References: <1359029288-12132-1-git-send-email-novalazy@gmail.com> 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: Thu, 24 Jan 2013 12:09:39 -0000 Add initial documentation for notmuch insert command. --- man/Makefile.local | 1 + man/man1/notmuch-insert.1 | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 man/man1/notmuch-insert.1 diff --git a/man/Makefile.local b/man/Makefile.local index 72e2a18..216aaa0 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..387e274 --- /dev/null +++ b/man/man1/notmuch-insert.1 @@ -0,0 +1,37 @@ +.TH NOTMUCH-INSERT 1 2013-xx-xx "Notmuch 0.xx" +.SH NAME +notmuch-insert \- add a message to the maildir and notmuch database +.SH SYNOPSIS + +.B notmuch insert +.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, then by operations specified on the command-line: +tags prefixed by '+' are added while +those prefixed by '\-' are removed. + +If the new message is a duplicate of an existing message in the database +(it has same Message-ID), it will be added to the maildir folder and +notmuch database, but the tags will not be changed. + +.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.12.1