1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

Implement STLS for pop3 (#384)

This commit is contained in:
Benson Margulies
2023-09-05 14:28:26 -07:00
committed by GitHub
parent f1dadba1b2
commit 9f0fef3180
10 changed files with 426 additions and 29 deletions

View File

@@ -117,7 +117,7 @@ func (a *Addressing) ShouldStoreDomain(domain string) bool {
// ShouldAcceptOriginDomain indicates if Inbucket accept mail from the specified domain.
func (a *Addressing) ShouldAcceptOriginDomain(domain string) bool {
domain = strings.ToLower(domain)
return !stringutil.SliceContains(a.Config.SMTP.RejectOriginDomains, domain)
return !stringutil.SliceContains(a.Config.SMTP.RejectOriginDomains, domain)
}
// ParseEmailAddress unescapes an email address, and splits the local part from the domain part.