No changes to the format of the body, but the header format was
fixed, and version 2 headers probably shouldn't be relied on.
The default is to include all available types of data. The
option can be specified multiple times to select some subset. As
The default is to include all available types of data. The
option can be specified multiple times to select some subset. As
- of version 2 of the dump format, there is a header line of the
+ of version 3 of the dump format, there is a header line of the
#define DUMP_INCLUDE_DEFAULT (DUMP_INCLUDE_TAGS | DUMP_INCLUDE_CONFIG | DUMP_INCLUDE_PROPERTIES)
#define DUMP_INCLUDE_DEFAULT (DUMP_INCLUDE_TAGS | DUMP_INCLUDE_CONFIG | DUMP_INCLUDE_PROPERTIES)
-#define NOTMUCH_DUMP_VERSION 2
+#define NOTMUCH_DUMP_VERSION 3
int
notmuch_database_dump (notmuch_database_t *notmuch,
int
notmuch_database_dump (notmuch_database_t *notmuch,
NOTMUCH_NEW > /dev/null
test_begin_subtest "dump header"
cat <<EOF > EXPECTED
NOTMUCH_NEW > /dev/null
test_begin_subtest "dump header"
cat <<EOF > EXPECTED
-#notmuch-dump batch-tag:2 config,properties,tags
+#notmuch-dump batch-tag:3 config,properties,tags
EOF
notmuch dump > OUTPUT
test_expect_equal_file EXPECTED OUTPUT
EOF
notmuch dump > OUTPUT
test_expect_equal_file EXPECTED OUTPUT
EOF
notmuch dump --include=config >OUTPUT
cat <<'EOF' >EXPECTED
EOF
notmuch dump --include=config >OUTPUT
cat <<'EOF' >EXPECTED
-#notmuch-dump batch-tag:2 config
+#notmuch-dump batch-tag:3 config
#@ aaabefore beforeval
#@ key%20with%20spaces value,%20with,%20spaces%21
#@ testkey1 testvalue1
#@ aaabefore beforeval
#@ key%20with%20spaces value,%20with,%20spaces%21
#@ testkey1 testvalue1