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) {
|
func checkForNewEmails(im models.IMAP) {
|
||||||
im.Host = im.Host + ":" + strconv.Itoa(int(im.Port)) // Append port
|
im.Host = im.Host + ":" + strconv.Itoa(int(im.Port)) // Append port
|
||||||
mailServer := Mailbox{
|
mailServer := Mailbox{
|
||||||
Host: im.Host,
|
Host: im.Host,
|
||||||
TLS: im.TLS,
|
TLS: im.TLS,
|
||||||
IgnoreCertErrors: im.IgnoreCertErrors,
|
IgnoreCertErrors: im.IgnoreCertErrors,
|
||||||
User: im.Username,
|
User: im.Username,
|
||||||
Pwd: im.Password,
|
Pwd: im.Password,
|
||||||
Folder: im.Folder}
|
Folder: im.Folder,
|
||||||
|
}
|
||||||
|
|
||||||
msgs, err := mailServer.GetUnread(true, false)
|
msgs, err := mailServer.GetUnread(true, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue