1
0
mirror of https://github.com/AfterShip/email-verifier.git synced 2025-02-06 09:44:47 +00:00

docs: fix word typos issue and update some comments

This commit is contained in:
Herbert Lu 2020-12-21 17:03:22 +08:00
parent 950cb4b35a
commit b9bd3d3426
4 changed files with 9 additions and 9 deletions

View File

@ -3,13 +3,13 @@ name: CI Actions # don't edit while the badge was depend on this
on:
push:
branches:
- master
- main
tags:
- v*
pull_request:
branches:
- master
- main
jobs:
lint-build-test:

View File

@ -6,7 +6,7 @@
[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/aftership/email-verifier)
[![Coverage Status](https://coveralls.io/repos/github/AfterShip/email-verifier/badge.svg?branch=master&t=VTgVfL)](https://coveralls.io/github/AfterShip/email-verifier?branch=master)
[![Go Report](https://goreportcard.com/badge/github.com/aftership/email-verifier)](https://goreportcard.com/report/github.com/aftership/email-verifier)
[![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://github.com/AfterShip/email-verifier/blob/master/LICENSE)
[![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://github.com/AfterShip/email-verifier/blob/main/LICENSE)
## Features
@ -160,8 +160,8 @@ This means that the server does not allow real-time verification of an email rig
## Contributing
For details on contributing to this repository, see the [contributing guide](https://github.com/AfterShip/email-verifier/blob/master/CONTRIBUTING.md).
For details on contributing to this repository, see the [contributing guide](https://github.com/AfterShip/email-verifier/blob/main/CONTRIBUTING.md).
## License
This package is licensed under MIT license. See [LICENSE](https://github.com/AfterShip/email-verifier/blob/master/LICENSE) for details.
This package is licensed under MIT license. See [LICENSE](https://github.com/AfterShip/email-verifier/blob/main/LICENSE) for details.

View File

@ -41,7 +41,7 @@ func (e *LookupError) Error() string {
}
// ParseSMTPError receives an MX Servers response message
// and generates the cooresponding MX error
// and generates the corresponding MX error
func ParseSMTPError(err error) *LookupError {
errStr := err.Error()

View File

@ -65,7 +65,7 @@ func (v *Verifier) Verify(email string) (*Result, error) {
ret.RoleAccount = v.IsRoleAccount(syntax.Username)
ret.Disposable = v.IsDisposable(syntax.Domain)
// If domain is disposable, do not check mx and smtp. Because domain probably doesn't exist.
// If the domain name is disposable, mx and smtp are not checked.
if ret.Disposable {
return &ret, nil
}
@ -117,13 +117,13 @@ func (v *Verifier) DisableAutoUpdateDisposable() *Verifier {
}
// FromEmail set the emails to use in the `MAIL FROM:` smtp command
// FromEmail sets the emails to use in the `MAIL FROM:` smtp command
func (v *Verifier) FromEmail(email string) *Verifier {
v.fromEmail = email
return v
}
// HelloName set the name to use in the `EHLO:` SMTP command
// HelloName sets the name to use in the `EHLO:` SMTP command
func (v *Verifier) HelloName(domain string) *Verifier {
v.helloName = domain
return v