[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-646-g89870ac

Jesse Vincent jesse at bestpractical.com
Tue Aug 31 16:23:40 EDT 2010


The branch, 3.9-trunk has been updated
       via  89870ac7119f71a9d3d5027bc3c5d5801005f6ef (commit)
      from  4170bd03c65e74086a4edd246665466bbd0b7c78 (commit)

Summary of changes:
 t/mail/sendmail.t |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 89870ac7119f71a9d3d5027bc3c5d5801005f6ef
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Aug 31 16:26:07 2010 -0400

    use MIME::Words to decode MIME::Words encoded headers.

diff --git a/t/mail/sendmail.t b/t/mail/sendmail.t
index 47a7b08..62f156f 100644
--- a/t/mail/sendmail.t
+++ b/t/mail/sendmail.t
@@ -413,9 +413,10 @@ sub text_plain_nested_redef_sendmessage {
 
         is ($MIME->head->mime_type , "multipart/mixed", "It is a mixed multipart");
 
+        use MIME::Words qw(:all);
         my $encoded_subject = $MIME->head->get("subject");
-        my $subject = MIME::Base64::decode_base64($encoded_subject);
-
+        my $subject = decode_mimewords($encoded_subject);
+        
         like($subject, qr/Niv\x{e5}er/, "The subject matches the word - $subject");
 
         1;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list