purebred-mua / purebred

A terminal based mail user agent based on notmuch
GNU Affero General Public License v3.0
139 stars 19 forks source link

avoid renderMessage #375

Closed frasertweedale closed 4 years ago

frasertweedale commented 4 years ago

renderMessage is inefficient, rendering the whole mail into a strict ByteString. Furthermore, the next release of purebred-email will break compatibility and change its return type to lazy ByteString.

After other recent refactors there was only one place using 'renderMessage'. Switch to buildMessage.