iya-sts
    Preparing search index...

    Variable setMailEncryption

    setMailEncryption: (username: string, choice: string, ctx: any) => any = ...

    Type Declaration

      • (username: string, choice: string, ctx: any): any
      • Sets how mail to a person is encrypted: none, openpgp (their key must have an encryption key) or smime (their userSMIMECertificate must hold one that can receive).

        Parameters

        • username: string

          the person

        • choice: string

          one of MAIL_ENCRYPTION

        • ctx: any

          { actor, via }

        Returns any

        { ok, choice }, or a coded refusal