TracAnnouncer: don't encode pure ASCII mail headers
|Reported by:||Eygene Ryabinkin||Owned by:|
|Cc:||Dmitri, Alex Willmer||Trac Release:||0.11|
Currently, announcer's mail is sent with all headers encoded as UTF-8. That's not cool, because it violates RFC 822: just today I got the Date field with contents
The approach that is taken by the mainline Trac is to try ASCII charset for encoding first, and if it fails, then proceed with the specified one. I had created the patch for AnnouncerPlugin:
It was mildly tested on our Trac with hundred mail messages and showed no regressions yet.