Subject: | single + and & signs are encoded as the same sequence |
Hi. I just discovered a bug in Unicode::IMAPUtf7
Both "&" and "+" are encoded as "&-". The main issue seems to be that Unicode::IMAPUtf7 uses regular expressions to modfify a "normal" utf7-string.
Here's an example of the error:
perl -MUnicode::IMAPUtf7=imap_utf7_encode,imap_utf7_decode -le 'for ("&test", "+test") {printf "%s is encoded as %s and decoded back to %s\n", $_, imap_utf7_encode($_), imap_utf7_decode(imap_utf7_encode($_))}'
I'll see if I can make a patch during the weekend.