mirror of https://github.com/gophish/gophish
gofmt'ing the IMAP changes
parent
61bbb22f7c
commit
0f6439de5a
|
@ -191,7 +191,6 @@ func (mbox *Mailbox) newClient() (*client.Client, error) {
|
||||||
return imapClient, err
|
return imapClient, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
err = imapClient.Login(mbox.User, mbox.Pwd)
|
err = imapClient.Login(mbox.User, mbox.Pwd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return imapClient, err
|
return imapClient, err
|
||||||
|
|
|
@ -9,11 +9,11 @@ package imap
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"path/filepath"
|
|
||||||
|
|
||||||
log "github.com/gophish/gophish/logger"
|
log "github.com/gophish/gophish/logger"
|
||||||
"github.com/jordan-wright/email"
|
"github.com/jordan-wright/email"
|
||||||
|
@ -198,7 +198,7 @@ func checkForNewEmails(im models.IMAP) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkRIDs(em *email.Email, rids map[string]bool){
|
func checkRIDs(em *email.Email, rids map[string]bool) {
|
||||||
// Check Text and HTML
|
// Check Text and HTML
|
||||||
emailContent := string(em.Text) + string(em.HTML)
|
emailContent := string(em.Text) + string(em.HTML)
|
||||||
for _, r := range goPhishRegex.FindAllStringSubmatch(emailContent, -1) {
|
for _, r := range goPhishRegex.FindAllStringSubmatch(emailContent, -1) {
|
||||||
|
|
Loading…
Reference in New Issue