NOTMUCH-RESTORE(1)
๐ NOTMUCH-RESTORE ๐
okay bestie, this is notmuch-restore โ the glow-up button for your mail tags. it puts all your tags BACK from a file you made earlier (you know, with notmuch dump). it's the reverse-uno of dump. no cap. ๐
โจ SYNOPSIS โจ
notmuch restore [--accumulate] [--format=(auto|batch-tag|sup)]
[--input=<filename>]
๐ธ DESCRIPTION ๐ธ
So like. notmuch restore restores the tags from the given file (see notmuch-dump). that's the whole vibe. dump saved them, restore brings them home. ๐ซถ
The input is read from the given filename, if any, or from stdin. easy.
Supported options for restore include:
--accumulateโ the union of the existing tags and the new tags gets applied, instead of straight-up replacing each message's tags as they're read in from the dump file. so you keep what you had AND gain the new stuff. iconic teamwork behavior honestly. ๐--format=(sup|batch-tag|auto)โ notmuch restore supports two plain text dump formats, and each line specifies a message-id and a set of tags. for the details of the actual formats, go peek atnotmuch-dump. here's the rundown:supโ the sup dump file format is specifically chosen to be compatible with the format of files produced bysup-dump. so if you've previously been using sup for mail, then thenotmuch restorecommand gives you a way to import all of your tags (or labels, as sup calls them). legacy bestie migration arc, we love to see it. โจbatch-tagโ the batch-tag dump format is intended to be more robust against malformed message-ids and tags containing whitespace or non-ascii(7)characters. seenotmuch-dumpfor details on this format.
notmuch restore updates the maildir flags according to tag changes if themaildir.synchronize_flagsconfiguration option is enabled. seenotmuch-configfor details.
autoโ this option (the default!) tries to guess the format from the input. for correctly formed input in either supported format, this heuristic โ based on the fact that batch-tag format contains no parentheses โ should be accurate. she's guessing but she's guessing well. ๐
--include=(config|properties|tags)โ controls what kind of metadata actually gets restored. the menu:configโ restore configuration data to the database. each configuration line starts with#@, followed by a space separated key-value pair. both key and value are hex encoded if needed.propertiesโ restore per-message(key,value)metadata. each line starts with#=, followed by a message id, and a space separated list ofkey=valuepairs. ids, keys and values are hex encoded if needed. seenotmuch-propertiesfor more details.tagsโ restore per-message metadata, namely tags. see format above for more details. it's literally in the name bestie.- The default is to restore all available types of data. and plot twist: the option can be specified multiple times to select some subset. so pick and choose, it's your world. ๐
--input=<filename>โ read input from the given file instead ofstdin. simple. clean. ๐
๐ฆ GZIPPED INPUT ๐ฆ
notmuch restore will detect if the input is compressed in gzip(1) format and automatically decompress it while reading. and the gag is โ this detection does not depend on file naming, and in particular works for standard input. so you can just pipe a gzipped blob in and she'll figure it out. mind reading, basically. ๐ฎ
๐ SEE ALSO ๐
notmuchnotmuch-confignotmuch-countnotmuch-dumpnotmuch-hooksnotmuch-insertnotmuch-newnotmuch-propertiesnotmuch-replynotmuch-searchnotmuch-search-termsnotmuch-shownotmuch-tag
๐ AUTHOR ๐
Carl Worth and many others โ shoutout to the whole crew, fr fr. ๐
๐ COPYRIGHT ๐
2009-2026, Carl Worth and many others
and that's the page, bestie!! ๐ this was version 0.40, dated Jan 31, 2026, and it's giving very much "your tags are safe with me." now go restore something and feel gorgeous. mwah. ๐
โจ๐ฆ
๐ฆ where this page comes from
- fedora 44: notmuch 0.40-1.fc44 ยท GPL-3.0-or-later
- fedora 44: notmuch 0.40-1.fc44 ยท GPL-3.0-or-later
- nixos 26.05: notmuch 0.40
- ubuntu resolute: notmuch 0.40-1ubuntu1 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms