I am working on some code that stores email Subjects on a file. And
I've seen that sometimes these come encoded RFC 2047-style, like:


Later, I would like to read and transform those to the corresponding
decoded string. I've been trying to use function getParameter from
"nsIMIMEHeaderParam" but haven't managed to set up the parameters
correctly yet.

I wonder if some knows if there is a better way to decode from RFC
2047-style. And/or someone might have some code snippet with a correct
usage of getParameter.