mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:04:39 +03:00
mox!
This commit is contained in:
17
smtp/ehlo.go
Normal file
17
smtp/ehlo.go
Normal file
@ -0,0 +1,17 @@
|
||||
package smtp
|
||||
|
||||
import (
|
||||
"net"
|
||||
|
||||
"github.com/mjl-/mox/dns"
|
||||
)
|
||||
|
||||
// Ehlo is the remote identification of an incoming SMTP connection.
|
||||
type Ehlo struct {
|
||||
Name dns.IPDomain // Name from EHLO/HELO line. Can be an IP or host name.
|
||||
ConnIP net.IP // Address of connection.
|
||||
}
|
||||
|
||||
func (e Ehlo) IsZero() bool {
|
||||
return e.Name.IsZero() && e.ConnIP == nil
|
||||
}
|
Reference in New Issue
Block a user