mirror of https://github.com/gophish/gophish
Gofmt'ing so that tests pass
parent
735880c398
commit
27d13a0584
|
@ -118,12 +118,13 @@ func (im *Monitor) Shutdown() error {
|
|||
func checkForNewEmails(im models.IMAP) {
|
||||
im.Host = im.Host + ":" + strconv.Itoa(int(im.Port)) // Append port
|
||||
mailServer := Mailbox{
|
||||
Host: im.Host,
|
||||
TLS: im.TLS,
|
||||
Host: im.Host,
|
||||
TLS: im.TLS,
|
||||
IgnoreCertErrors: im.IgnoreCertErrors,
|
||||
User: im.Username,
|
||||
Pwd: im.Password,
|
||||
Folder: im.Folder}
|
||||
User: im.Username,
|
||||
Pwd: im.Password,
|
||||
Folder: im.Folder,
|
||||
}
|
||||
|
||||
msgs, err := mailServer.GetUnread(true, false)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue