From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B57BB431FBD for ; Fri, 21 Jun 2013 22:47:03 -0700 (PDT) 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 6iuOSyTOhdw6 for ; Fri, 21 Jun 2013 22:46:56 -0700 (PDT) Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com [209.85.160.51]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0EBD2431FAE for ; Fri, 21 Jun 2013 22:46:55 -0700 (PDT) Received: by mail-pb0-f51.google.com with SMTP id um15so8692539pbc.10 for ; Fri, 21 Jun 2013 22:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=wmFR6pDTz1hS0UX7gTZzilMfG5M/x2fVuf9bZo6ZEOY=; b=xb+6d4eUk5HnPWTVZHU1coKttRYzfE5Q7mIk82Hem/xssGJRvDKKeIXwU4CGekk5/B jA4Us+nukMavf0dmVxHdKjRyS5Gyw4Beajm3wMRXthtBKtlpasEFvZLuSqAOEr/50dqU 80sI1W1+NS5X5iqHbOOI6FrTp/8XAeEn2jZgtmMLsnItoxwC0a6X1hPP3CjJEcKgi+ax +uaCLeHYrXtH/LkPtOywh4ki0pnFpmUZerNTcfArgvUTaZZGWylyy/snXeRS2cqEHy2s et8QOPfwXnCD1Z0/jeiRkJwgbpbdP2HSD9eRuT8UYz1v+bnhXbpnbnwbImcOlEv8UZbR Uiag== X-Received: by 10.66.164.232 with SMTP id yt8mr19193279pab.21.1371880014093; Fri, 21 Jun 2013 22:46:54 -0700 (PDT) Received: from localhost (215.42.233.220.static.exetel.com.au. [220.233.42.215]) by mx.google.com with ESMTPSA id pb5sm7868829pbc.29.2013.06.21.22.46.50 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 21 Jun 2013 22:46:52 -0700 (PDT) From: Peter Wang To: notmuch@notmuchmail.org Subject: [PATCH v6 00/12] insert command Date: Sat, 22 Jun 2013 15:46:36 +1000 Message-Id: <1371880008-18312-1-git-send-email-novalazy@gmail.com> X-Mailer: git-send-email 1.7.12.1 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: Sat, 22 Jun 2013 05:47:04 -0000 Since v5: - return success if the message was successfully added to the maildir even if we weren't able to add it to the notmuch database - document exit status - add a couple of tests - don't print anything after parse_arguments returns failure Peter Wang (12): tag-util: move out 'tag' command-line checks tag-util: do not reset list in parse_tag_command_line cli: add insert command man: document 'insert' command man: reference notmuch-insert.1 test: add tests for insert insert: add --folder option man: document insert --folder option test: test insert --folder option insert: add --create-folder option man: document insert --create-folder test: test insert --create-folder option Makefile.local | 1 + man/Makefile.local | 1 + man/man1/notmuch-config.1 | 4 +- man/man1/notmuch-count.1 | 4 +- man/man1/notmuch-dump.1 | 4 +- man/man1/notmuch-insert.1 | 75 +++++++ man/man1/notmuch-new.1 | 4 +- man/man1/notmuch-reply.1 | 3 +- man/man1/notmuch-restore.1 | 3 +- man/man1/notmuch-search.1 | 3 +- man/man1/notmuch-show.1 | 3 +- man/man1/notmuch-tag.1 | 3 +- man/man1/notmuch.1 | 3 +- man/man5/notmuch-hooks.5 | 4 +- man/man7/notmuch-search-terms.7 | 3 +- notmuch-client.h | 3 + notmuch-insert.c | 477 ++++++++++++++++++++++++++++++++++++++++ notmuch-tag.c | 5 + notmuch.c | 3 + tag-util.c | 8 +- tag-util.h | 2 + test/insert | 121 ++++++++++ test/notmuch-test | 1 + 23 files changed, 716 insertions(+), 22 deletions(-) create mode 100644 man/man1/notmuch-insert.1 create mode 100644 notmuch-insert.c create mode 100755 test/insert -- 1.7.12.1