all fixed
This commit is contained in:
@@ -24,7 +24,7 @@ Commands:
|
||||
-section -s Select section e.g.: rutracker, bandcamp etc.
|
||||
|
||||
The Go runtime version: %s
|
||||
Report bugs to https://git.amok.space/yevhen/resource-scraper/issues`
|
||||
Report bugs to https://git.kplus.net.ua/yevhen/resource-scraper/issues`
|
||||
|
||||
const (
|
||||
version = "0.1"
|
||||
|
||||
@@ -68,8 +68,12 @@ func (s *EmailService) Login() {
|
||||
|
||||
err := s.client.Login(s.User, s.pass).Wait()
|
||||
if s.CheckErr("Login", err) {
|
||||
fmt.Println("========================================")
|
||||
fmt.Println(err.Error())
|
||||
fmt.Println("========================================")
|
||||
return
|
||||
}
|
||||
|
||||
s.success(s.User + " logged")
|
||||
}
|
||||
|
||||
@@ -117,6 +121,7 @@ func (s *EmailService) ListMessages(mailboxes []string, criteria *imap.SearchCri
|
||||
}
|
||||
|
||||
messages, err := s.client.Fetch(seqSet, fetchOptions).Collect()
|
||||
|
||||
if s.CheckErr("Fetch", err) {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user