1 Return-Path: <novalazy@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 1A57C431FCB
\r
6 for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 17:17:08 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id BArc5nU+9uHf for <notmuch@notmuchmail.org>;
\r
17 Sat, 24 Nov 2012 17:17:06 -0800 (PST)
\r
18 Received: from mail-da0-f53.google.com (mail-da0-f53.google.com
\r
19 [209.85.210.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id BC78D431FBF
\r
22 for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 17:17:05 -0800 (PST)
\r
23 Received: by mail-da0-f53.google.com with SMTP id x6so2305618dac.26
\r
24 for <notmuch@notmuchmail.org>; Sat, 24 Nov 2012 17:17:03 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:date:message-id:x-mailer;
\r
27 bh=3GUItFdm2276ugnKkw9CjhLciftag9VYm79knC4+hLo=;
\r
28 b=mxYtJ+jV2UK9FJYFPcrF0pYLjeYj8QFdlqzh3o0mbvhHlibWjWU0QGhTBCmKaLKAyI
\r
29 hbBF5sQnmDl3QuAobQijiTDCwWi1seQm/X7KMfZb+t60Ig7+DoM8UpwPF+VYG31crUx0
\r
30 7c+hwzAq7YCC1GXASToItunPnnRpp91pXcfjGRx5zJyY8B4ZffqL8G7s7etY/VxOXxSz
\r
31 F1KAL93QQ1OS+kE8fH9uiZbyR3UVTYEfeAorIKfZ2QT2FAVs+7JL0AtVmsRZj0hUqm5e
\r
32 9gNRyuA9uaVL8vLEGITzbApPqDDsZKrOdS4v23pZ+3U+bDFHDnxGPr1cSJYMjYLvzm5X
\r
34 Received: by 10.68.232.201 with SMTP id tq9mr26485208pbc.12.1353806223801;
\r
35 Sat, 24 Nov 2012 17:17:03 -0800 (PST)
\r
36 Received: from localhost (215.42.233.220.static.exetel.com.au.
\r
38 by mx.google.com with ESMTPS id tm8sm6222674pbc.48.2012.11.24.17.17.00
\r
39 (version=TLSv1/SSLv3 cipher=OTHER);
\r
40 Sat, 24 Nov 2012 17:17:02 -0800 (PST)
\r
41 From: Peter Wang <novalazy@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH v2 00/20] insert command
\r
44 Date: Sun, 25 Nov 2012 12:16:26 +1100
\r
45 Message-Id: <1353806206-29133-1-git-send-email-novalazy@gmail.com>
\r
46 X-Mailer: git-send-email 1.7.12.1
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Sun, 25 Nov 2012 01:17:08 -0000
\r
61 This series mainly addresses the issues raised by Mark:
\r
63 - check talloc failures
\r
64 - deadlock in maildir_open_tmp
\r
65 - stricter file modes (0600 and 0700)
\r
66 - shared tag operation parser with notmuch-tag.c
\r
67 - simplified mkdir_parents
\r
69 - fsync after writing and rename
\r
70 - added a couple of tests
\r
74 Due to new restriction on tags beginning with '-', an argument beginning with
\r
75 "--" is no longer ambiguous so I have removed the optional "--" separator
\r
76 between options and tag operations.
\r
79 tag: factor out tag operation parsing
\r
80 tag: make tag operation parser public
\r
81 cli: add stub for insert command
\r
82 insert: open Maildir tmp file
\r
83 insert: copy stdin to Maildir tmp file
\r
84 insert: move file from Maildir tmp to new
\r
85 insert: add new message to database
\r
86 insert: support --folder option
\r
87 insert: prevent writes outside Maildir hierarchy
\r
88 insert: apply default tags to new message
\r
89 insert: parse command-line tag operations
\r
90 insert: apply command-line tag operations
\r
91 insert: add --create-folder option
\r
92 insert: fsync after writing tmp file
\r
93 insert: fsync new directory after rename
\r
94 insert: trap SIGINT and clean up
\r
95 insert: add copyright line from notmuch-deliver
\r
96 test: add tests for insert
\r
97 man: document 'insert' command
\r
98 man: reference notmuch-insert.1
\r
100 Makefile.local | 1 +
\r
101 man/Makefile.local | 1 +
\r
102 man/man1/notmuch-config.1 | 4 +-
\r
103 man/man1/notmuch-count.1 | 4 +-
\r
104 man/man1/notmuch-dump.1 | 4 +-
\r
105 man/man1/notmuch-insert.1 | 60 +++++
\r
106 man/man1/notmuch-new.1 | 4 +-
\r
107 man/man1/notmuch-reply.1 | 3 +-
\r
108 man/man1/notmuch-restore.1 | 3 +-
\r
109 man/man1/notmuch-search.1 | 3 +-
\r
110 man/man1/notmuch-show.1 | 3 +-
\r
111 man/man1/notmuch-tag.1 | 3 +-
\r
112 man/man1/notmuch.1 | 3 +-
\r
113 man/man5/notmuch-hooks.5 | 4 +-
\r
114 man/man7/notmuch-search-terms.7 | 3 +-
\r
115 notmuch-client.h | 12 +
\r
116 notmuch-insert.c | 493 ++++++++++++++++++++++++++++++++++++++++
\r
117 notmuch-tag.c | 79 ++++---
\r
119 test/insert | 93 ++++++++
\r
120 test/notmuch-test | 1 +
\r
121 21 files changed, 733 insertions(+), 51 deletions(-)
\r
122 create mode 100644 man/man1/notmuch-insert.1
\r
123 create mode 100644 notmuch-insert.c
\r
124 create mode 100755 test/insert
\r