Commit Graph
20 Commits
Author SHA1 Message Date
cathugger a8695c5caf srnd: message/rfc822 doesn't have charset parameter 2019-01-26 15:08:12 +02:00
cathugger b61741fdda srnd: use all bits of blake2b for signature 2019-01-25 20:43:12 +02:00
cathugger fb0c600e3a srnd: use text/plain as default type
otherwise it fails to parse valid messages
2018-12-23 08:35:22 +02:00
cathugger b54e1d84da use correct header, reserve some msgids, tweaks 2018-12-15 02:05:00 +02:00
cathugger af161968c8 srnd: avoid quoting in some cases 2018-12-12 20:56:48 +02:00
cathugger 40e4ae1fc4 srnd: custom email address formatter, some tweaks
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.
2018-12-12 18:38:58 +02:00
cathugger 7e6f143108 generate compliant From headers, more tolerance to non-compliant From headers, other fixups 2018-12-11 22:57:42 +00:00
cathugger fa511c275e srnd: ensure clean XOVER output 2018-12-09 19:50:27 +00:00
cathugger b5ff2dc4a2 srnd: fix multipart message parsing 2018-12-08 21:00:13 +00:00
cathugger 2d62a3bc7f srnd: error while reading message isn't valid thing 2018-12-08 19:44:56 +00:00
cathugger 740bf82a1e srnd: properly parse email addresses
this replaces faulty address parsing code with calls to stdlib' email parser and some reasonable fallbacks.
note that nntpArticle.Email() function was completely incorrect, but it's not used anywhere in code, apparently.
2018-12-03 14:54:08 +02:00
cathugger 2d3c304c81 srnd: more lax Message-ID check
This axes out literally insane overly restrictive regex-based
Message-ID check and replaces it with clean and simple conditions
specified in RFC 3977.
Old check wasn't compliant with any email or netnews internet
standard I know of, and was causing propagation issues.
Even old RFC 822 (email) and RFC 850 (usenet) specifications
don't have so restrictive specifications.
2018-11-27 06:27:05 +02:00
cathugger 91e758c834 fix ARTICLE not returning any error
Yes, I'm aware it sometimes may still return wrong code.
2018-11-25 20:01:33 +02:00
cathugger 81653a5415 small sync tweak 2018-01-26 14:46:59 +00:00
cathugger 6b039265d9 small insignificant fix 2018-01-24 16:21:51 +00:00
cathugger 9fba95b58d fix even more braindamage of mine 2018-01-24 15:57:13 +00:00
cathugger 8894cf6814 im retarded 2018-01-24 15:39:37 +00:00
cathugger d752312868 specify correct range in XOVER when mirroring 2018-01-24 15:26:51 +00:00
cathugger 337a61dd7f some NNTP improvements 2018-01-23 22:32:14 +00:00
cathugger 8cb044a5e3 some fixes 2018-01-22 17:15:25 +00:00