emersion / go-message

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

header: prevent setting empty address list headers #155

Closed rockorager closed 2 years ago

rockorager commented 2 years ago

Prevent setting empty address list headers (to, from, cc, bcc). RFCC 5322 states that destination address list headers contain the field name and one or more addresses, implying that empty headers are not allowed.