summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrozencemetery <frozencemetery@localhost.localdomain>2012-01-13 04:16:44 -0500
committerfrozencemetery <frozencemetery@localhost.localdomain>2012-01-13 04:16:44 -0500
commitd7c70a64d61ced5fca65ebf0cc998625994da538 (patch)
tree8c57c0ceb07a571632c5e922517e8a7052a5de43
parenteac3d2b700bee838ae51c07aac28511b649818fa (diff)
Added instructions for re-applying automatic tags to corpus.
This is especially useful when upgrading notmuch versions.
-rw-r--r--howto.mdwn17
1 files changed, 17 insertions, 0 deletions
diff --git a/howto.mdwn b/howto.mdwn
index f067308..0e75acc 100644
--- a/howto.mdwn
+++ b/howto.mdwn
@@ -97,3 +97,20 @@ various "third party" notmuch utilities.
[available](http://git.upsilon.cc/cgi-bin/gitweb.cgi?p=zack-homepage.git;a=history;f=blog/posts/2011/01/how_to_use_Notmuch_with_Mutt.mdwn)
in markdown syntax from the Git repository of my homepage.)</small>
+* <span id="reapply_auto">**Automatically retagging the database (e.g., when upgrading versions)**</span>
+
+ Certain versions of notmuch include new automatic tags (for example, between
+ 0.3 and 0.10, automatic tagging of signed and encrypted messages was added).
+ However, for users running with databases created in older versions of
+ notmuch, these tags are missing in pre-existing messages and need to be
+ added. One way to do this is as follows:
+
+ $ notmuch dump ~/out.nm
+ $ mv ~/Mail/.notmuch ~/.notmuch.bak
+ $ notmuch new
+ $ notmuch tag -inbox -unread '*'
+ $ notmuch restore --accumulate ~/out.nm
+
+ At this point, one should run a sanity check on the tags, and if everything
+ has merged correctly, the ~/.notmuch.bak directory is expendable, as is
+ ~/out.nm.