forked from Silverfish/proton-bridge
Unsilent errors reading mbox files
This commit is contained in:
@ -11,6 +11,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* GODT-511 User agent format changed.
|
* GODT-511 User agent format changed.
|
||||||
|
* Unsilent errors reading mbox files.
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
* GODT-519 Unused AUTH scope parsing methods.
|
* GODT-519 Unused AUTH scope parsing methods.
|
||||||
|
|||||||
@ -99,7 +99,10 @@ func (p *MBOXProvider) updateCount(rule *Rule, progress *Progress, filePath stri
|
|||||||
count := 0
|
count := 0
|
||||||
for {
|
for {
|
||||||
_, err := mboxReader.NextMessage()
|
_, err := mboxReader.NextMessage()
|
||||||
if err != nil {
|
if err == io.EOF {
|
||||||
|
break
|
||||||
|
} else if err != nil {
|
||||||
|
progress.fatal(err)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
count++
|
count++
|
||||||
|
|||||||
Reference in New Issue
Block a user