diff options
Diffstat (limited to 'rt/t/mail/mime_decoding.t')
-rw-r--r-- | rt/t/mail/mime_decoding.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rt/t/mail/mime_decoding.t b/rt/t/mail/mime_decoding.t index 1126f1f84..97590712b 100644 --- a/rt/t/mail/mime_decoding.t +++ b/rt/t/mail/mime_decoding.t @@ -236,4 +236,14 @@ diag "quotes in filename"; ); } +diag "Alternating encoded-words and not, space is preserved"; +{ + my $str = q{A =?UTF-8?Q?B?= C =?UTF-8?Q?D?= E =?UTF-8?Q?F?= G}; + is_string( + RT::I18N::DecodeMIMEWordsToUTF8($str, "Subject"), + q{A B C D E F G}, + "Space is preserved between encoded-words and not" + ); +} + done_testing; |