emails

package
v5.4.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2020 License: BSD-3-Clause, BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEmail

func AddEmail(mctx libkb.MetaContext, email keybase1.EmailAddress, visibility keybase1.IdentityVisibility) error

func CreateAssertionFromEmail

func CreateAssertionFromEmail(ctx context.Context, email string) (libkb.AssertionURL, error)

CreateAssertionFromEmail creates AssertionURL from an e-mail address. E-mail address is not validated apart from the minimal validation that assertion code does, so pretty much anything that has '@' in it will pass.

func DeleteEmail

func DeleteEmail(mctx libkb.MetaContext, email keybase1.EmailAddress) error

func GetEmails

func GetEmails(mctx libkb.MetaContext) ([]keybase1.Email, error)

func ParseSeparatedEmails

func ParseSeparatedEmails(mctx libkb.MetaContext, emails string, malformed *[]string) (ret []string)

ParseSeparatedEmails parses a comma-or-new-line-separated email list that comes in a string. It can extract emails that conform to RFC 5322 and RFC 6532 (see net/mail documentation for more info).

Examples of a valid e-mail entities would be: - Jan Smith <jan@example.com> - alice@example.org

The "name" portion is ignored, caller will always get the raw e-mails, in this case: { "jan@example.com", "alice@example.org" }.

Individual e-mails have to be separated by comma or newline, and they can be surrounded by any amount of whitespace characters that will be ignored.

`malformed` is an optional pointer to string list to which this function can append malformed e-mails for the caller. It can be nil.

func SendVerificationEmail

func SendVerificationEmail(mctx libkb.MetaContext, email keybase1.EmailAddress) error

func SetPrimaryEmail

func SetPrimaryEmail(mctx libkb.MetaContext, email keybase1.EmailAddress) error

func SetVisibilityAllEmail

func SetVisibilityAllEmail(mctx libkb.MetaContext, visibility keybase1.IdentityVisibility) error

func SetVisibilityEmail

func SetVisibilityEmail(mctx libkb.MetaContext, email keybase1.EmailAddress, visibility keybase1.IdentityVisibility) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL