Hi ChriS, Am Montag, 28. Februar 2022 17:25 CET, schrieb "\"Christian Setzer (HaW Augsburg)\"" ([email protected]) <[email protected]>: > About 5 lines above the patched line , there is an "lowercaseString" > already > [https://github.com/inverse-inc/sogo/blob/3f93e6ebc4d6061c995c72993bbbde6ed4b9edbd/SoObjects/Mailer/SOGoDraftObject.m#L2041]: > > emlst = X509_get1_email(scert); > for (i = 0; i < sk_OPENSSL_STRING_num(emlst); i++) > [emails addObject: [[NSString stringWithUTF8String: > sk_OPENSSL_STRING_value(emlst, i)] lowercaseString]]; > X509_email_free(emlst); > > Do i presume rightfully that this is where you extract the email address > out of the certificate AND do apply a "lowercase" on the email address? > > If so, is the "lowercase" applied on the complete email address e.g. > "local-part@domain" (my guess) or just on the "local-part"?
yes, your assumption is right. This code extracts all email addresses from the certificate and converts both, local-part and domain to lowercase. Best regards, Frank -- [email protected] https://inverse.ca/sogo/lists
