majestrate / nntpchan

nntp based decentralized imageboard
MIT License
57 stars 3 forks source link

srnd: custom email address formatter, some tweaks #169

Closed cathugger closed 5 years ago

cathugger commented 5 years ago

This adds custom email address formatter, which, unlike stdlib one, doesn't needlessly quote names. Quoted names can be a bit of issue with older nodes which parse addresses in simpler way, and end up not removing quote characters. This also ensures that newlines cannot be inserted in in From and Subject headers, which effectively allowed insertion of new headers in message being posted, and generating invalid messages.