I'm using mutt and offlineimap to access GMail. A message can occur in more than one folder (either due to multiple labels or simply because it exists in the All Mail folder), but when changing the flag of one message (e.g., from new to read) they don't get propagated to other folders. This is somewhat annoying when trying to gauge the amount of unread mail: in one folder they same message has been marked as read while it is still considered new in another.
Is there a straight-forward solution to propagate the message flags? As a mediocre fix, I was planning to write a small script that, given a Message-ID, propagates the flags to relevant folders (based on X-Label header). Matthias