Hello!

I decided to fiks the thing myself. I edited the crypto-utils.lib and 
changed the subjects of the messages that are sent to the user when his 
certificate is issued. I used the subject from the form that the RA 
operator has when sending mails manually to the users. I attached the 
patch to this message. I think it would make sense to patch the 
current stable distribution. I changed also the subject of the CRIN 
messages since the previous one was not too informative also.

Take a look.

Of course, it is also needed to modify the translations to not have 
problems with the subject not being translated. ;-)

Janez
--- crypto-utils.lib    2004-10-05 15:24:56.000000000 +0200
+++ /usr/local/OpenCA/lib/functions/crypto-utils.lib    2004-11-02 13:59:35.152448280 
+0100
@@ -1457,7 +1457,8 @@
                        TO           => $cert->getParsed()->{EMAILADDRESS},
                        CC           => [EMAIL PROTECTED],
                        FROM         => crypto_get_admin_account(),
-                       SUBJECT      => gettext ("OpenCA Certificate and PIN 
information"));
+                       SUBJECT      => i18nGettext ("CRIN information for certificate 
__CERT_SERIAL__",
+                                                    "__CERT_SERIAL__", 
$cert->getSerial()));
     } else {
         ## send to the admin itself and print a warning
         $enc_msg = $token->getSMIME (
@@ -1466,7 +1467,7 @@
                        MESSAGE      => $msg,
                        TO           => crypto_get_admin_account(),
                        FROM         => crypto_get_admin_account(),
-                       SUBJECT      => i18nGettext ("OpenCA Certificate and PIN 
information for certificate __CERT_SERIAL__",
+                       SUBJECT      => i18nGettext ("CRIN information for certificate 
__CERT_SERIAL__",
                                                     "__CERT_SERIAL__", 
$cert->getSerial()));
     }
 
@@ -1535,7 +1536,7 @@
                       "Content-Transfer-Encoding: 8bit\n";
     }
 
-    my $subject = gettext ("OpenCA Certificate information");
+    my $subject =  i18nGettext ("PKI Information for Certificate 
__CERT_SERIAL__","__CERT_SERIAL__",$cert->getSerial());
     if ( defined $cert->getParsed()->{EMAILADDRESS} and 
$cert->getParsed()->{EMAILADDRESS} ) {
         my $to = $cert->getParsed()->{EMAILADDRESS};
         $no_enc_msg .= "To: $to\n".
@@ -1543,7 +1544,7 @@
                       "Subject: $subject\n".
                       "\n$new_msg\n";
     } else {
-        $subject = gettext ("OpenCA Certificate information");
+        $subject =  i18nGettext ("PKI Information for Certificate 
__CERT_SERIAL__","__CERT_SERIAL__",$cert->getSerial());
         $no_enc_msg .=  "To: ".crypto_get_admin_account()."\n".
                         "From: ".crypto_get_admin_account()."\n".
                         "Subject: $subject\n".

Reply via email to