[PATCH v6 00/12] insert command
authorPeter Wang <novalazy@gmail.com>
Sat, 22 Jun 2013 05:46:36 +0000 (15:46 +1000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:55:36 +0000 (09:55 -0800)
42/d9ded565a5ed2cea7b70a62e0133becdc7b0d2 [new file with mode: 0644]

diff --git a/42/d9ded565a5ed2cea7b70a62e0133becdc7b0d2 b/42/d9ded565a5ed2cea7b70a62e0133becdc7b0d2
new file mode 100644 (file)
index 0000000..3d35aa2
--- /dev/null
@@ -0,0 +1,114 @@
+Return-Path: <novalazy@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id B57BB431FBD\r
+       for <notmuch@notmuchmail.org>; Fri, 21 Jun 2013 22:47:03 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 6iuOSyTOhdw6 for <notmuch@notmuchmail.org>;\r
+       Fri, 21 Jun 2013 22:46:56 -0700 (PDT)\r
+Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com\r
+       [209.85.160.51]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 0EBD2431FAE\r
+       for <notmuch@notmuchmail.org>; Fri, 21 Jun 2013 22:46:55 -0700 (PDT)\r
+Received: by mail-pb0-f51.google.com with SMTP id um15so8692539pbc.10\r
+       for <notmuch@notmuchmail.org>; Fri, 21 Jun 2013 22:46:55 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:x-mailer;\r
+       bh=wmFR6pDTz1hS0UX7gTZzilMfG5M/x2fVuf9bZo6ZEOY=;\r
+       b=xb+6d4eUk5HnPWTVZHU1coKttRYzfE5Q7mIk82Hem/xssGJRvDKKeIXwU4CGekk5/B\r
+       jA4Us+nukMavf0dmVxHdKjRyS5Gyw4Beajm3wMRXthtBKtlpasEFvZLuSqAOEr/50dqU\r
+       80sI1W1+NS5X5iqHbOOI6FrTp/8XAeEn2jZgtmMLsnItoxwC0a6X1hPP3CjJEcKgi+ax\r
+       +uaCLeHYrXtH/LkPtOywh4ki0pnFpmUZerNTcfArgvUTaZZGWylyy/snXeRS2cqEHy2s\r
+       et8QOPfwXnCD1Z0/jeiRkJwgbpbdP2HSD9eRuT8UYz1v+bnhXbpnbnwbImcOlEv8UZbR\r
+       Uiag==\r
+X-Received: by 10.66.164.232 with SMTP id yt8mr19193279pab.21.1371880014093;\r
+       Fri, 21 Jun 2013 22:46:54 -0700 (PDT)\r
+Received: from localhost (215.42.233.220.static.exetel.com.au.\r
+       [220.233.42.215])\r
+       by mx.google.com with ESMTPSA id pb5sm7868829pbc.29.2013.06.21.22.46.50\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Fri, 21 Jun 2013 22:46:52 -0700 (PDT)\r
+From: Peter Wang <novalazy@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v6 00/12] insert command\r
+Date: Sat, 22 Jun 2013 15:46:36 +1000\r
+Message-Id: <1371880008-18312-1-git-send-email-novalazy@gmail.com>\r
+X-Mailer: git-send-email 1.7.12.1\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 22 Jun 2013 05:47:04 -0000\r
+\r
+Since v5:\r
+\r
+- return success if the message was successfully added to the maildir\r
+  even if we weren't able to add it to the notmuch database\r
+- document exit status\r
+- add a couple of tests\r
+- don't print anything after parse_arguments returns failure\r
+\r
+Peter Wang (12):\r
+  tag-util: move out 'tag' command-line checks\r
+  tag-util: do not reset list in parse_tag_command_line\r
+  cli: add insert command\r
+  man: document 'insert' command\r
+  man: reference notmuch-insert.1\r
+  test: add tests for insert\r
+  insert: add --folder option\r
+  man: document insert --folder option\r
+  test: test insert --folder option\r
+  insert: add --create-folder option\r
+  man: document insert --create-folder\r
+  test: test insert --create-folder option\r
+\r
+ Makefile.local                  |   1 +\r
+ man/Makefile.local              |   1 +\r
+ man/man1/notmuch-config.1       |   4 +-\r
+ man/man1/notmuch-count.1        |   4 +-\r
+ man/man1/notmuch-dump.1         |   4 +-\r
+ man/man1/notmuch-insert.1       |  75 +++++++\r
+ man/man1/notmuch-new.1          |   4 +-\r
+ man/man1/notmuch-reply.1        |   3 +-\r
+ man/man1/notmuch-restore.1      |   3 +-\r
+ man/man1/notmuch-search.1       |   3 +-\r
+ man/man1/notmuch-show.1         |   3 +-\r
+ man/man1/notmuch-tag.1          |   3 +-\r
+ man/man1/notmuch.1              |   3 +-\r
+ man/man5/notmuch-hooks.5        |   4 +-\r
+ man/man7/notmuch-search-terms.7 |   3 +-\r
+ notmuch-client.h                |   3 +\r
+ notmuch-insert.c                | 477 ++++++++++++++++++++++++++++++++++++++++\r
+ notmuch-tag.c                   |   5 +\r
+ notmuch.c                       |   3 +\r
+ tag-util.c                      |   8 +-\r
+ tag-util.h                      |   2 +\r
+ test/insert                     | 121 ++++++++++\r
+ test/notmuch-test               |   1 +\r
+ 23 files changed, 716 insertions(+), 22 deletions(-)\r
+ create mode 100644 man/man1/notmuch-insert.1\r
+ create mode 100644 notmuch-insert.c\r
+ create mode 100755 test/insert\r
+\r
+-- \r
+1.7.12.1\r
+\r