New dump/restore format.

2012-01-14 Thread David Bremner
This version of this series add fairly extensive testing with strange message ids full of spaces and punctuation, and some documentation. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH v3 05/10] test: add test for dump --format=notmuch

2012-01-14 Thread David Bremner
From: David Bremner brem...@debian.org The first test is really to test our assumptions about the corpus, namely that a certain set of message-id's is safe (i.e. doesn't change under hex-escaping). We then check dump output as best we can without functionality-to-come in notmuch-restore. ---

[PATCH v3 07/10] test: second set of dump/restore --format=notmuch tests

2012-01-14 Thread David Bremner
From: David Bremner brem...@debian.org These one need the completed functionality in notmuch-restore. Fairly exotic tags are tested, but no weird message id's. We test each possible input to autodetection, both explicit (with --format=auto) and implicit (without --format). --- test/dump-restore

[PATCH v3 06/10] notmuch-restore: add 'notmuch format' support, auto detect

2012-01-14 Thread David Bremner
From: David Bremner brem...@debian.org This is format is whitespace separated tokens, encoded by util/hex-escape.c The format detection heuristic relies on the fact that '(' is not part of the character set used by hex-escape. Since hex-escape is designed to be OK for pathnames (and shells),

[PATCH v3 08/10] notmuch-{dump, restore}.1: document new format options

2012-01-14 Thread David Bremner
From: David Bremner brem...@debian.org More or less arbitrarily, notmuch-dump.1 gets the more detailed description of the format. --- man/man1/notmuch-dump.1| 59 ++- man/man1/notmuch-restore.1 | 60 ++- 2

[PATCH v3 09/10] random-dump.c: new test-binary to generate dump files

2012-01-14 Thread David Bremner
From: David Bremner brem...@debian.org This binary creates a torture test dump file for the new dump format. --- test/Makefile.local |4 ++ test/basic |2 +- test/random-dump.c | 144 +++ 3 files changed, 149 insertions(+), 1

[PATCH v3 04/10] notmuch-dump: add --format=(notmuch|sup)

2012-01-14 Thread David Bremner
From: David Bremner brem...@debian.org sup is the old format, and remains the default. Each line of the notmuch format is msg_id tag tag...tag where each space seperated token is 'hex-encoded' to remove troubling characters. In particular this format won't have the same problem with e.g. spaces

[PATCH v3 10/10] test: new random message-id and tags dump/restore test.

2012-01-14 Thread David Bremner
From: David Bremner brem...@debian.org The idea is to generate a random dump file, and then generate minimal mail messages from that. Currently this relies on the behaviour of the gmime message-id parser that if it cannot find a leading '' in the Message-Id field, it just copies the string

[PATCH v3 02/10] test/hex-xcode: new test binary

2012-01-14 Thread David Bremner
From: David Bremner brem...@debian.org This program is used both as a test-bed/unit-tester for ../util/hex-escape.c, and also as a utility in future tests of dump and restore. --- test/.gitignore |1 + test/Makefile.local |6 ++- test/basic |2 +- test/hex-xcode.c|

[PATCH v3 03/10] test/hex-escaping: new test for hex escaping routines

2012-01-14 Thread David Bremner
From: David Bremner brem...@debian.org These are more like unit tests, to (try to) make sure the library functionality is working before building more complicated things on top of it. --- test/hex-escaping | 26 ++ test/notmuch-test |1 + 2 files changed, 27

Re: [RFC] vim plugin rewrite II

2012-01-14 Thread David Bremner
On Sat, 14 Jan 2012 08:54:43 +0100, an...@khirnov.net wrote: The advantages over current vim client are still the following: * sending and displaying/saving attachments * much better unicode support * tag name and search commands completion * proper representation of the thread structure *

<    1   2