Hi Stephen,
Hmmm, there have been some similar questions before; my preferred
solution would be for mbsync to check the file mtime, or md5-hash or
whatever, to decide whether a file needs re-syncing - that seems to be
the 'right' solution.
In any case, that if we want to do something for this on the mu side, I
wouldn't want to add extra magic to mu4e to trick mbsync to do what's
expected -- this might give unexpected results elsewhere
(e.g. offlineimap, ...), and hard to understand bug reports[*].
So, what I'd propose instead that we don't add any more magic for that
in mu4e, but add a mu command, say, 'tickle', that does the renaming;
after you've done some retagging, you could trigger a script, something
like:
--8<---------------cut here---------------start------------->8---
kill mu server
mu find "" --after `cat ~/.last_update_time` --exec 'mu tickle'
mbsync <mbsync-options>
date +%s > ~/.last_update_time
--8<---------------cut here---------------end--------------->8---
This would work for any message that changed (not just re-tagged) as
other people have asked for; and it makes it obvious that it's a
hack. I've added a 'mu tickle' command to make this a bit easier.
Kind regards,
Dirk.
[*] there's `mu4e-change-filenames-when-moving' already, but in
hindsight I think it's a bit problematic.
--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:
www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C