This problem came up again on IRC a few days ago, so I'm finally posting this series (which I've been running locally for months).
The idea---which is explained in detail in the first patch---is that messages in new/ are maildir messages with an empty set of maildir flags. Currently we treat such messages as non-maildir messages, which, in particular, means we don't automatically give them the unread tag.
