On Sun, Nov 25 2012, david at tethera.net wrote:
> This version adds an optional makefile target to download the corpus.
>
> Tomi reviewed it on IRC and didn't complain.
+1
Tomi
Hi
On Sat, 24 Nov 2012, david at tethera.net wrote:
> From: Jani Nikula
>
> Basic test of functionality, along with all combinations of options.
> ---
> test/tagging | 46 ++
> 1 file changed, 46 insertions(+)
>
> diff --git a/test/tagging
On Sat, 24 Nov 2012, david at tethera.net wrote:
> From: Jani Nikula
>
> ---
> man/man1/notmuch-tag.1 | 52
> +++-
> 1 file changed, 51 insertions(+), 1 deletion(-)
>
> diff --git a/man/man1/notmuch-tag.1 b/man/man1/notmuch-tag.1
> index
Quoth David Bremner on Nov 25 at 8:05 pm:
> Austin Clements writes:
> >> +add_email_corpus takes arguments "--small" and "--medium" for when you
> >> +want smaller corpuses to check.
> >
> > "corpora"?
>
> reworded to say
>
> ,
> | add_email_corpus takes arguments "--small" and "--medium"
This looks good. A couple of typos and a small queries (and I
agree with Tomi but I think you have already included that).
On Sat, 24 Nov 2012, david at tethera.net wrote:
> From: David Bremner
>
> These are meant to be shared between notmuch-tag and notmuch-restore.
>
> The bulk of the
On Sun, Nov 25 2012, Austin Clements wrote:
> Quoth Tomi Ollila on Nov 25 at 3:26 pm:
>> On Sun, Nov 25 2012, Austin Clements wrote:
>>
>> > Previously, we would treat multi-message mboxes as one giant email,
>> > which, besides the obvious incorrect indexing, often led to
>> > out-of-memory
Austin Clements writes:
>> +subdirs := compat completion emacs lib man parse-time-string
>> +subdirs := $(subdirs) performance-test util test
> += ?
>
Sure.
>> +CORPUS_NAME := notmuch-email-corpus-$(PERFTEST_VERSION).tar.xz
>
> Would it make sense to split out the different size corpora so a
Ethan Glasser-Camp writes:
>
> If Bremner is willing to put this package in contrib, I think he should
> do so.
I guess that's fine, but I'd be more likely to get around to it if
presented with a patch against git master
d
Quoth david at tethera.net on Nov 25 at 11:02 am:
> From: David Bremner
>
> This is not near as fancy as as the unit tests, on the theory that
> the code should typically be crashing when performance tuning.
> Nonetheless, there is plenty of room for improvement. Several more of
> the pieces of
On Sun, 25 Nov 2012, Peter Wang wrote:
> Add tests for new 'insert' command.
> ---
> test/insert | 93
> +++
> test/notmuch-test | 1 +
> 2 files changed, 94 insertions(+)
> create mode 100755 test/insert
>
> diff --git a/test/insert
Quoth Mark Walters on Nov 25 at 2:31 pm:
>
> Hi
>
> This series looks good to me (I have not reviewed the two bindings
> patches). Patch 2 looks like it makes things much easier to follow than
> the current code (if I understood the current pointer stuff it
> constructs the top-level list by
On Sun, 25 Nov 2012, Peter Wang wrote:
> Add initial documentation for notmuch insert command.
> ---
> man/Makefile.local| 1 +
> man/man1/notmuch-insert.1 | 60
> +++
> 2 files changed, 61 insertions(+)
> create mode 100644
On Sun, 25 Nov 2012, Peter Wang wrote:
> After moving the file from the 'tmp' to the 'new' directory,
> fsync on the 'new' directory for durability.
> ---
> notmuch-insert.c | 39 ---
> 1 file changed, 32 insertions(+), 7 deletions(-)
>
> diff --git
On Sun, 25 Nov 2012, Peter Wang wrote:
> Factor out parsing of +tag, -tag operations from argv
> into a separate function.
> ---
> notmuch-tag.c | 66
> +--
> 1 file changed, 41 insertions(+), 25 deletions(-)
>
> diff --git
This is series is looking good. I have a few minor issues but no more.
There are two parts I don't really know enough about to be certain
about: the fsyncing and the sigtrap bit.
For fsync: I have some recollection that you have to fsync all subpaths
to the root to guarantee that it makes it
Quoth calmar c. on Nov 24 at 8:07 pm:
> hi all,
>
> notmuch stops/exits on death symlink even when they are on the
> ignore-list at the same time.
>
> on: notmuch new ... arount 360maybe in notmuch-new.c
The series in id:1353821145-29182-1-git-send-email-amdragon at mit.edu
should fix this
On Sun, Nov 25 2012, Austin Clements wrote:
> Previously, we would treat multi-message mboxes as one giant email,
> which, besides the obvious incorrect indexing, often led to
> out-of-memory errors for archival mboxes. Now we explicitly reject
> multi-message mboxes. For historical reasons,
Peter Wang writes:
> - shared tag operation parser with notmuch-tag.
Sharing tag operations with notmuch-tag is definitely a good idea, but
it will also conflict with the changes of the series at
id:1353792017-31459-1-git-send-email-david at tethera.net
Although I might be biased, my
Hi
This series looks good to me (I have not reviewed the two bindings
patches). Patch 2 looks like it makes things much easier to follow than
the current code (if I understood the current pointer stuff it
constructs the top-level list by doing pointer stuff to remove all
messages which are
Quoth Tomi Ollila on Nov 25 at 3:26 pm:
> On Sun, Nov 25 2012, Austin Clements wrote:
>
> > Previously, we would treat multi-message mboxes as one giant email,
> > which, besides the obvious incorrect indexing, often led to
> > out-of-memory errors for archival mboxes. Now we explicitly reject
On Sun, Nov 25 2012, Austin Clements wrote:
> calmar on IRC reported a bug today where notmuch will abort when it
> encounters a broken symlink, even if that symlink is in the
> user-specified ignore list. These two patches test for this bug and
> fix it.
+1
Tomi
Add references to notmuch-insert.1 from other man pages.
---
man/man1/notmuch-config.1 | 4 ++--
man/man1/notmuch-count.1| 4 ++--
man/man1/notmuch-dump.1 | 4 ++--
man/man1/notmuch-new.1 | 4 ++--
man/man1/notmuch-reply.1| 3 ++-
man/man1/notmuch-restore.1
Add initial documentation for notmuch insert command.
---
man/Makefile.local| 1 +
man/man1/notmuch-insert.1 | 60 +++
2 files changed, 61 insertions(+)
create mode 100644 man/man1/notmuch-insert.1
diff --git a/man/Makefile.local
Add tests for new 'insert' command.
---
test/insert | 93 +++
test/notmuch-test | 1 +
2 files changed, 94 insertions(+)
create mode 100755 test/insert
diff --git a/test/insert b/test/insert
new file mode 100755
index 000..d821a41
The 'insert' implementation was based partly on notmuch-deliver.
---
notmuch-insert.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index 28653ee..5c65582 100644
--- a/notmuch-insert.c
+++ b/notmuch-insert.c
@@ -2,6 +2,9 @@
*
* Copyright ? 2012
The only potentially long-running part of the 'insert' command should be
copying stdin to the 'tmp' file. If SIGINT is received during the
copying process, abort and clean up the file in 'tmp'. At all other
points, just ignore the signal and continue.
---
notmuch-insert.c | 27
After moving the file from the 'tmp' to the 'new' directory,
fsync on the 'new' directory for durability.
---
notmuch-insert.c | 39 ---
1 file changed, 32 insertions(+), 7 deletions(-)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index f09c579..831b322
Flush the tmp file to disk after writing for durability.
---
notmuch-insert.c | 4
1 file changed, 4 insertions(+)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index b7aef95..f09c579 100644
--- a/notmuch-insert.c
+++ b/notmuch-insert.c
@@ -329,6 +329,10 @@ insert_message (void *ctx,
Support an option to create a new folder in the maildir.
---
notmuch-insert.c | 92
1 file changed, 92 insertions(+)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index 81a528c..b7aef95 100644
--- a/notmuch-insert.c
+++
Apply the +tag and -tag operations specified on the command-line.
---
notmuch-insert.c | 19 +++
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index e4631a2..81a528c 100644
--- a/notmuch-insert.c
+++ b/notmuch-insert.c
@@ -174,7
Reuse the parser in notmuch-tag.c to parse +tag and -tag
operations on the 'insert' command-line.
---
notmuch-insert.c | 23 +++
1 file changed, 23 insertions(+)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index 362da66..e4631a2 100644
--- a/notmuch-insert.c
+++
Apply the new.tags to messages added by 'insert'. This mirrors the
behaviour if the message were delivered by a separate tool followed by
'notmuch new'.
---
notmuch-insert.c | 25 -
1 file changed, 20 insertions(+), 5 deletions(-)
diff --git a/notmuch-insert.c
Don't accept a --folder name that contains a ".." component,
in order to prevent writing outside of the Maildir hierarchy.
---
notmuch-insert.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index a50eacc..022f7cd 100644
---
Allow the new message to be inserted into a folder within the Maildir
hierarchy instead of the top-level folder.
---
notmuch-insert.c | 21 -
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index 020dc29..a50eacc 100644
---
Add the new message to the notmuch database, renaming the file to encode
notmuch tags as maildir flags.
---
notmuch-insert.c | 49 -
1 file changed, 48 insertions(+), 1 deletion(-)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index
Atomically move the new message file from the Maildir 'tmp' directory
to 'new'.
---
notmuch-insert.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index 88e8533..63a04dc 100644
--- a/notmuch-insert.c
+++ b/notmuch-insert.c
@@ -94,6
Read the new message from standard input into the Maildir tmp file.
---
notmuch-insert.c | 51 +++
1 file changed, 47 insertions(+), 4 deletions(-)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index 371fb47..88e8533 100644
---
Open a unique file in the Maildir tmp directory.
The new message is not yet copied into the file.
---
notmuch-insert.c | 105 ++-
1 file changed, 104 insertions(+), 1 deletion(-)
diff --git a/notmuch-insert.c b/notmuch-insert.c
index
The notmuch insert command should read a message from standard input
and deliver it to a Maildir folder, and then incorporate the message
into the notmuch database. Essentially it moves the functionality of
notmuch-deliver into notmuch.
Though it could be used as an alternative to notmuch new,
Make the tag operation parser accessible outside notmuch-tag.c
so it can be reused by the upcoming insert command.
---
notmuch-client.h | 9 +
notmuch-tag.c| 17 ++---
2 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/notmuch-client.h b/notmuch-client.h
Factor out parsing of +tag, -tag operations from argv
into a separate function.
---
notmuch-tag.c | 66 +--
1 file changed, 41 insertions(+), 25 deletions(-)
diff --git a/notmuch-tag.c b/notmuch-tag.c
index 88d559b..35a76db 100644
---
This series mainly addresses the issues raised by Mark:
- check talloc failures
- deadlock in maildir_open_tmp
- stricter file modes (0600 and 0700)
- shared tag operation parser with notmuch-tag.c
- simplified mkdir_parents
- trap SIGINT
- fsync after writing and rename
- added a couple of tests
On Sun, 25 Nov 2012, Tomi Ollila wrote:
> On Sun, Nov 25 2012, Austin Clements wrote:
>
>> calmar on IRC reported a bug today where notmuch will abort when it
>> encounters a broken symlink, even if that symlink is in the
>> user-specified ignore list. These two patches test for this bug and
>>
This series looks fine to me. +1
Mark
On Sun, 25 Nov 2012, Austin Clements wrote:
> We support this for historical reasons.
> ---
> test/new | 13 +
> 1 file changed, 13 insertions(+)
>
> diff --git a/test/new b/test/new
> index 587aa11..43d56e4 100755
> --- a/test/new
> +++
Tomi Ollila writes:
> notmuch-get-bodypart-content provides raw data to its caller so
> that it can be stored verbatim whenever needed. icalendar functions
> expect Emacs to do EOL conversion for the data given to these. Therefore
> it the CRLF -> LF conversion is now done explicitly.
pushed
From: David Bremner
The idea is to use some of the simpler parts of the test suite
infrastructure to help run performance tests.
---
test/test-lib-common.sh | 147 +++
test/test-lib.sh| 129
This version adds an optional makefile target to download the corpus.
Tomi reviewed it on IRC and didn't complain.
On Sat, Nov 24 2012, david at tethera.net wrote:
> From: David Bremner
>
> These are meant to be shared between notmuch-tag and notmuch-restore.
>
> The bulk of the routines implement a "tag operation list" abstract
> data type act as a structured representation of a set of tag
> operations
On Sat, Nov 24 2012, david at tethera.net wrote:
> From: David Bremner
>
> Now we can actually round trip these crazy tags and and message ids.
> hex-xcode is no longer needed as it's built in.
> ---
> test/dump-restore | 13 +++--
> 1 file changed, 7 insertions(+), 6 deletions(-)
>
>
Previously, we would treat multi-message mboxes as one giant email,
which, besides the obvious incorrect indexing, often led to
out-of-memory errors for archival mboxes. Now we explicitly reject
multi-message mboxes. For historical reasons, we retain support for
single-message mboxes, but
This test is currently broken. Note that its brokenness cascades and
causes the next test to fail as well (because notmuch incorrectly
indexes the mbox file).
---
test/new | 18 ++
1 file changed, 18 insertions(+)
diff --git a/test/new b/test/new
index 43d56e4..29f9aff 100755
We support this for historical reasons.
---
test/new | 13 +
1 file changed, 13 insertions(+)
diff --git a/test/new b/test/new
index 587aa11..43d56e4 100755
--- a/test/new
+++ b/test/new
@@ -163,6 +163,19 @@ rm -rf "${MAIL_DIR}"/two
output=$(NOTMUCH_NEW)
test_expect_equal
On Sat, Nov 24 2012, markwalters1009 wrote:
> From: Mark Walters
>
> After this series there will be times when a caller will want to pass
> a very large query string to notmuch (eg a list of 10,000 message-ids)
> and this can exceed the size of ARG_MAX. Hence allow notmuch to take
> the query
On Sat, Nov 24 2012, markwalters1009 wrote:
> From: Mark Walters
>
> This adds a --queries=true option which modifies the summary output of
> notmuch search by including two extra query strings with each result:
> one query string specifies all matching messages and one query string
> all
We now test for user ignore patterns before attempting to determine if
a directory entry is itself a directory. As a result, we no longer
abort for broken symlinks if the user has explicitly ignored them.
This fixes the test added in the previous patch. It also slightly
changes the debug output
Currently marked as broken because we abort on broken symlinks, even
if they are in the ignore list.
---
test/new |7 +++
1 file changed, 7 insertions(+)
diff --git a/test/new b/test/new
index 587aa11..59892a7 100755
--- a/test/new
+++ b/test/new
@@ -203,4 +203,11 @@ test_expect_equal
calmar on IRC reported a bug today where notmuch will abort when it
encounters a broken symlink, even if that symlink is in the
user-specified ignore list. These two patches test for this bug and
fix it.
On Sun, Nov 25 2012, Austin Clements amdra...@mit.edu wrote:
calmar on IRC reported a bug today where notmuch will abort when it
encounters a broken symlink, even if that symlink is in the
user-specified ignore list. These two patches test for this bug and
fix it.
+1
Tomi
hi all,
notmuch stops/exits on death symlink even when they are on the
ignore-list at the same time.
on: notmuch new ... arount 360maybe in notmuch-new.c
cheers
marco
--
(o_ It rocks: LINUX + Command-Line-Interface
//\ GPG: 0x59D90F4D
V_/_
This series looks fine to me. +1
Mark
On Sun, 25 Nov 2012, Austin Clements amdra...@mit.edu wrote:
We support this for historical reasons.
---
test/new | 13 +
1 file changed, 13 insertions(+)
diff --git a/test/new b/test/new
index 587aa11..43d56e4 100755
--- a/test/new
On Sun, 25 Nov 2012, Tomi Ollila tomi.oll...@iki.fi wrote:
On Sun, Nov 25 2012, Austin Clements amdra...@mit.edu wrote:
calmar on IRC reported a bug today where notmuch will abort when it
encounters a broken symlink, even if that symlink is in the
user-specified ignore list. These two
Hi,
I can set color per line using notmuch-search-line-faces. But I would
like to specify color per line field, i.e a color for date, another for
authors for exemple.
To do this, I would like to use a 3-tuple list for
notmuch-search-line-faces:
:type '(alist :key-type (string) :field (string)
On Sun, Nov 25 2012, Austin Clements amdra...@mit.edu wrote:
Previously, we would treat multi-message mboxes as one giant email,
which, besides the obvious incorrect indexing, often led to
out-of-memory errors for archival mboxes. Now we explicitly reject
multi-message mboxes. For
Hi
This series looks good to me (I have not reviewed the two bindings
patches). Patch 2 looks like it makes things much easier to follow than
the current code (if I understood the current pointer stuff it
constructs the top-level list by doing pointer stuff to remove all
messages which are
This version adds an optional makefile target to download the corpus.
Tomi reviewed it on IRC and didn't complain.
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch
From: David Bremner brem...@debian.org
The idea is to use some of the simpler parts of the test suite
infrastructure to help run performance tests.
---
test/test-lib-common.sh | 147 +++
test/test-lib.sh| 129
From: David Bremner brem...@debian.org
This is not near as fancy as as the unit tests, on the theory that
the code should typically be crashing when performance tuning.
Nonetheless, there is plenty of room for improvement. Several more of
the pieces of the test infrastructure (e.g. the option
Tomi Ollila tomi.oll...@iki.fi writes:
notmuch-get-bodypart-content provides raw data to its caller so
that it can be stored verbatim whenever needed. icalendar functions
expect Emacs to do EOL conversion for the data given to these. Therefore
it the CRLF - LF conversion is now done
This is series is looking good. I have a few minor issues but no more.
There are two parts I don't really know enough about to be certain
about: the fsyncing and the sigtrap bit.
For fsync: I have some recollection that you have to fsync all subpaths
to the root to guarantee that it makes it
On Sun, 25 Nov 2012, Peter Wang noval...@gmail.com wrote:
Factor out parsing of +tag, -tag operations from argv
into a separate function.
---
notmuch-tag.c | 66
+--
1 file changed, 41 insertions(+), 25 deletions(-)
diff --git
On Sun, 25 Nov 2012, Peter Wang noval...@gmail.com wrote:
After moving the file from the 'tmp' to the 'new' directory,
fsync on the 'new' directory for durability.
---
notmuch-insert.c | 39 ---
1 file changed, 32 insertions(+), 7 deletions(-)
diff --git
On Sun, 25 Nov 2012, Peter Wang noval...@gmail.com wrote:
Add tests for new 'insert' command.
---
test/insert | 93
+++
test/notmuch-test | 1 +
2 files changed, 94 insertions(+)
create mode 100755 test/insert
diff --git
Quoth Tomi Ollila on Nov 25 at 3:26 pm:
On Sun, Nov 25 2012, Austin Clements amdra...@mit.edu wrote:
Previously, we would treat multi-message mboxes as one giant email,
which, besides the obvious incorrect indexing, often led to
out-of-memory errors for archival mboxes. Now we
Peter Wang noval...@gmail.com writes:
- shared tag operation parser with notmuch-tag.
Sharing tag operations with notmuch-tag is definitely a good idea, but
it will also conflict with the changes of the series at
id:1353792017-31459-1-git-send-email-da...@tethera.net
Although I might be
On Sun, Nov 25 2012, Austin Clements amdra...@mit.edu wrote:
Quoth Tomi Ollila on Nov 25 at 3:26 pm:
On Sun, Nov 25 2012, Austin Clements amdra...@mit.edu wrote:
Previously, we would treat multi-message mboxes as one giant email,
which, besides the obvious incorrect indexing, often led
Quoth Mark Walters on Nov 25 at 2:31 pm:
Hi
This series looks good to me (I have not reviewed the two bindings
patches). Patch 2 looks like it makes things much easier to follow than
the current code (if I understood the current pointer stuff it
constructs the top-level list by doing
Quoth da...@tethera.net on Nov 25 at 11:02 am:
From: David Bremner brem...@debian.org
This is not near as fancy as as the unit tests, on the theory that
the code should typically be crashing when performance tuning.
Nonetheless, there is plenty of room for improvement. Several more of
the
This looks good. A couple of typos and a small queries (and I
agree with Tomi but I think you have already included that).
On Sat, 24 Nov 2012, da...@tethera.net wrote:
From: David Bremner brem...@debian.org
These are meant to be shared between notmuch-tag and notmuch-restore.
The bulk of
On Sat, 24 Nov 2012, da...@tethera.net wrote:
From: Jani Nikula j...@nikula.org
---
man/man1/notmuch-tag.1 | 52
+++-
1 file changed, 51 insertions(+), 1 deletion(-)
diff --git a/man/man1/notmuch-tag.1 b/man/man1/notmuch-tag.1
index
Hi
On Sat, 24 Nov 2012, da...@tethera.net wrote:
From: Jani Nikula j...@nikula.org
Basic test of functionality, along with all combinations of options.
---
test/tagging | 46 ++
1 file changed, 46 insertions(+)
diff --git a/test/tagging
Ethan Glasser-Camp ethan.glasser.c...@gmail.com writes:
If Bremner is willing to put this package in contrib, I think he should
do so.
I guess that's fine, but I'd be more likely to get around to it if
presented with a patch against git master
d
Quoth David Bremner on Nov 25 at 8:05 pm:
Austin Clements amdra...@mit.edu writes:
+add_email_corpus takes arguments --small and --medium for when you
+want smaller corpuses to check.
corpora?
reworded to say
,
| add_email_corpus takes arguments --small and --medium for when
82 matches
Mail list logo