Function sequoia_ffi::openpgp::packet::userid::pgp_user_id_email_normalized[][src]

#[no_mangle]
pub extern "C" fn pgp_user_id_email_normalized(
    errp: Option<&mut *mut Error>,
    uid: *const Packet,
    emailp: &mut *mut c_char
) -> Status
Expand description

Returns a normalized version of the UserID’s email address.

C Declaration

pgp_status_t
pgp_user_id_email_normalized (pgp_error_t *errp,
                              const pgp_packet_t uid,
                              char **emailp);

Normalized email addresses are primarily needed when email addresses are compared.

Note: normalized email addresses are still valid email addresses.

This function normalizes an email address by doing puny-code normalization on the domain, and lowercasing the local part in the so-called empty locale.

Note: this normalization procedure is the same as the normalization procedure recommended by Autocrypt.