Permalink
Browse files

Don't bail out on internal mbox error - keep trying to read the rest …

…of the messages
  • Loading branch information...
1 parent 364acfa commit 052dcb3d7073fd5233956f11f4a29b974c1db8e6 @bytbox committed Mar 4, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 mbox.go
View
@@ -26,9 +26,10 @@ func ReadMbox(r io.Reader) (msgs []mail.Message, err error) {
if mbuf != nil {
m, err = mail.Parse(mbuf.Bytes())
if err != nil {
- return
+ println(err.Error())
+ } else {
+ msgs = append(msgs, m)
}
- msgs = append(msgs, m)
}
mbuf = new(bytes.Buffer)
} else {

0 comments on commit 052dcb3

Please sign in to comment.