1 .TH NOTMUCH-RESTORE 1 2013-02-17 "Notmuch 0.15.2"
3 notmuch-restore \- restores the tags from the given file (see notmuch dump)
9 .RB [ "--format=(auto|batch-tag|sup)" ]
10 .RI "[ --input=<" filename "> ]"
14 Restores the tags from the given file (see
15 .BR "notmuch dump" ")."
17 The input is read from the given filename, if any, or from stdin.
27 The union of the existing and new tags is applied, instead of
28 replacing each message's tags as they are read in from the dump file.
33 .B \-\-format=(sup|batch-tag|auto)
35 Notmuch restore supports two plain text dump formats, with each line
36 specifying a message-id and a set of tags.
37 For details of the actual formats, see \fBnotmuch-dump\fR(1).
45 dump file format is specifically chosen to be
46 compatible with the format of files produced by sup-dump.
47 So if you've previously been using sup for mail, then the
49 command provides you a way to import all of your tags (or labels as
59 dump format is intended to more robust against malformed message-ids
60 and tags containing whitespace or non-\fBascii\fR(7) characters. See
61 \fBnotmuch-dump\fR(1) for details on this format.
64 updates the maildir flags according to tag changes if the
65 .B "maildir.synchronize_flags"
66 configuration option is enabled. See \fBnotmuch-config\fR(1) for
75 This option (the default) tries to guess the format from the
76 input. For correctly formed input in either supported format, this
77 heuristic, based the fact that batch-tag format contains no parentheses,
86 \fBnotmuch\fR(1), \fBnotmuch-config\fR(1), \fBnotmuch-count\fR(1),
87 \fBnotmuch-dump\fR(1), \fBnotmuch-hooks\fR(5), \fBnotmuch-new\fR(1),
88 \fBnotmuch-reply\fR(1), \fBnotmuch-search\fR(1),
89 \fBnotmuch-search-terms\fR(7), \fBnotmuch-show\fR(1),