diff options
author | David Bremner <bremner@debian.org> | 2012-06-15 01:08:42 +0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-12-08 10:40:54 -0400 |
commit | bfe66da4321ce63b6fb3693eddf809e2e0532888 (patch) | |
tree | 35adde125116e007c9d0aa216b2961eef1d70c9f /dump-restore-private.h | |
parent | 9a989772cbf7d5699210adb0b9dd3b42c4bd49de (diff) |
notmuch-dump: add --format=(batch-tag|sup)
sup is the old format, and remains the default, at least until
restore is converted to parse this format.
Each line of the batch-tag format is modelled on the syntax of notmuch tag:
- "notmuch tag" is omitted from the front of the line
- The dump format only uses query strings of a single message-id.
- Each space seperated tag/message-id is 'hex-encoded' to remove
trouble-making characters.
- It is permitted (and will be useful) for there to be no tags before
the query.
In particular this format won't have the same problem with e.g. spaces
in message-ids or tags; they will be round-trip-able.
Diffstat (limited to 'dump-restore-private.h')
-rw-r--r-- | dump-restore-private.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dump-restore-private.h b/dump-restore-private.h new file mode 100644 index 00000000..896a0043 --- /dev/null +++ b/dump-restore-private.h @@ -0,0 +1,13 @@ +#ifndef DUMP_RESTORE_PRIVATE_H +#define DUMP_RESTORE_PRIVATE_H + +#include "hex-escape.h" +#include "command-line-arguments.h" + +typedef enum dump_formats { + DUMP_FORMAT_AUTO, + DUMP_FORMAT_BATCH_TAG, + DUMP_FORMAT_SUP +} dump_format_t; + +#endif |