Hello Mark, nice to read you worked it out

Here a oneliner to learn the file name characters for dovecot-keywords

awk '{printf("%c: %2d %s\n", $1+97, $1, $2) }' dovecot-keywords

If you want to pre-populate dovecot-keywords, you would have to add the file to all of the Maildir folders *before* you tag any message at all. Probably best, while dovecot is down.

Only then the reference from keyword key to keyword number would be the same in all folders and you could rename messages in the file-system regardless of where they are.

A starting keywords file might look like this:
0 $Forwarded
1 $MDNSent
2 NonJunk
3 Junk
4 $label1
5 $label2
6 $label3
7 $label4
8 $label5
9 $label6
10 $label7
11 $label8
12 $label9

A starting prefs.js would contain lines like these:
- user_pref("mailnews.tags.$label1.tag", "Important");
- user_pref("mailnews.tags.$label2.tag", "TODO");
- …
- user_pref("mailnews.tags.$label9.tag", "Special");

Happy Hacking

--
peter

Reply via email to