I have developed such patch and attach it in this mail. I developed it under 3.6.0. (Time flies during I straggled) I hope this concept will be merged into main source tree.
There are several problems in your implementation. Specifically, you cannot make any references in rfc822 to symbols defined in the sqwebmail directory. This is because rfc822 is a generic library that's also shared by other applications.
And my patch includes some rfc2047 compliance bug fix.
You'll have to do better than this. You are making drastic changes to the rfc2047 functions, and you need to provide a better explanation.
pgp00000.pgp
Description: PGP signature
