[notmuch] hello, 'automated' tagging, synchronisation

David Edmondson dme at dme.org
Wed Feb 10 03:06:13 PST 2010


Hello. I've been trying out notmuch for a few days, so far it looks very
useful. Thank you to all those who have participated in implementing
it. I have a couple of questions:

1. How do others add some 'automatic' tagging of new messages? At the
   moment I'm using a script[1] which tags messages after running
   `notmuch new`. This passes over the same data multiple times, which
   seems wasteful but may be inevitable. Combined with a small amount of
   lisp...

   (setq notmuch-folder-list '("mine" "inbox" "rss" "unread"
		     "os-xen" "os-discuss" "os-laptop" "os-network"
		     "xen-changelog" "xen-devel" "xen-users"
		     "list/fork" "list/interesting-people" "list/sun-alumni" "list/notmuch"))
   (setq notmuch-folders (mapcar
         '(lambda (f) (cons f (concat "tag:" f " AND tag:unread")))
         notmuch-folder-list))

   ...things mostly work out.

2. Sometimes it's useful to use another computer. Having the Maildir
   folders duplicated there is simple (already using offlineimap), as is
   building the search database. Missing are the tags, particularly if
   they were hand applied. So far my (unimplemented) solution for this
   is to dump/restore the tags and store the dump under version
   control. Moving from one computer to another (which I don't do very
   often) would involve:
         a$ notmuch dump >tags
         a$ git commit tags
         a$ git push
         b$ git pull
         b$ notmuch restore tags
   With appropriate amounts of conflict resolution should I update the
   tags on both a and b.

   What does everyone else do about this?

Footnotes: 
[1]  http://dme.org/tmp/run-notmuch

dme.
-- 
David Edmondson, http://dme.org


More information about the notmuch mailing list