Hi guys,

I have encountered some problems with sending emails from OpenCA 0.9.2.5
with UTF-8. OpenCA didn't include appropriate MIME tags for UTF-8 content.
Here they are:

        Content-Type: text/plain; charset=UTF-8 format=flowed
        Content-Transfer-Encoding: 8bit

After short investigations I found, what crypto-utils.lib have incorrect
code for this. I'm attaching diff result for original and corrected library.


I have not yet tryed to install OpenCA 0.9.3 rc1, but in sources I see the
same problem.

Any comments?


Regards,

Dmitrij





*** crypto-utils.lib    Fri Apr  7 14:38:10 2006
--- crypto-utils.lib.new        Thu Oct 19 10:35:27 2006
***************
*** 1599,1607 ****
          $encoding =~ s/(UTF|ISO|EUC)([^-]{1})/$1-$2/i;  ## on FreeBSD 
"locale" returns charset names
                                                          ## which do not 
comply with IANA standard for
                                                          ## MIME
          $no_enc_msg = "Content-Type: text/plain; charset=$encoding; 
format=flowed\n".
                        "Content-Transfer-Encoding: 8bit\n";
-     }

      my $subject = gettext ("OpenCA Certificate information");
      my $enc_subject = MIME::Base64::encode($subject,"");
--- 1599,1607 ----
          $encoding =~ s/(UTF|ISO|EUC)([^-]{1})/$1-$2/i;  ## on FreeBSD 
"locale" returns charset names
                                                          ## which do not 
comply with IANA standard for
                                                          ## MIME
+     }
          $no_enc_msg = "Content-Type: text/plain; charset=$encoding; 
format=flowed\n".
                        "Content-Transfer-Encoding: 8bit\n";

      my $subject = gettext ("OpenCA Certificate information");
      my $enc_subject = MIME::Base64::encode($subject,"");
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to