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
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.
---
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
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),
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
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
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
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
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|
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
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
*
101 - 111 of 111 matches
Mail list logo