summaryrefslogtreecommitdiff
path: root/internal/session/identity.go
blob: 8f3c64d5da0756f092a0e70e13c5ab6bb3d17b4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package session

import (
	"net/mail"
)

// Address returns the mail.Address for the identity.
func (i Identity) Address() mail.Address {
	return mail.Address{
		Name:    i.DisplayName,
		Address: i.Email,
	}
}