emersion / go-message

✉️ A streaming Go library for the Internet Message Format and mail messages
MIT License
373 stars 108 forks source link

Detect missing boundary EOF #163

Closed hudon closed 1 year ago

hudon commented 1 year ago

fix #129

This fix looks for a specific error message from textproto which indicates a missing boundary EOF. It's not a super stable solution because textproto may change their error messages, but in the worst case, this fix will fallback on old behavior, so it doesn't break existing behavior.

A more stable solution could be to explicitly detect the missing boundary EOF ourselves.