notifications

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgeEncryptMailBody added in v1.0.5

func AgeEncryptMailBody(origBody []byte, person *person_api.Person) ([]byte, error)

AgeEncryptMailBody retrieves the ssh key of a recipient from ldap, then encrypts the body with it using age.

func EncryptMailBody

func EncryptMailBody(origBody []byte, person *person_api.Person) ([]byte, error)

encryptMailBody retrieves the PGP fingerprint of a recipient from ldap, then queries the gpg server to retrieve the public key and encrypts the body with it.

func SendEmail

func SendEmail(conf *Config, body []byte, person *person_api.Person, usePgp bool) error

Types

type Config

type Config struct {
	Email struct {
		Host, From, Cc,
		ReplyTo, Subject string
		Port int
		Auth struct {
			User, Pass string
		}
	}
}

Jump to

Keyboard shortcuts

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