Special character for IMAP folder on Exchange
As I’ve already written in a previous post, it’s quite simple to <href=”/blog/doppelte-mails-mailimapclient-auf-einem-exchange-server-finden”>connect from a Perl to Exchange</a> (in german). Unfortunately you get into trouble if you have some special character in the folder names, e.g. german umlaute. Luckily Holger found a solution for this special character in IMAP folder problem.
It’s caused by a modified UTF-7 encoding for non-ASCII characters (see RFC 2060 for details). But since we’re using Perl the solution is already at our fingertips by using Encode::IMAPUTF7.
Thanks Holger for the tip.