mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 15:46:44 +00:00
Unsilent errors reading mbox files
This commit is contained in:
@ -99,7 +99,10 @@ func (p *MBOXProvider) updateCount(rule *Rule, progress *Progress, filePath stri
|
||||
count := 0
|
||||
for {
|
||||
_, err := mboxReader.NextMessage()
|
||||
if err != nil {
|
||||
if err == io.EOF {
|
||||
break
|
||||
} else if err != nil {
|
||||
progress.fatal(err)
|
||||
break
|
||||
}
|
||||
count++
|
||||
|
||||
Reference in New Issue
Block a user