nntpchan fails to parse date #45

Closed
opened 2026-10-05 03:09:49 +02:00 by adam · 4 comments
Owner

nntpchan failed to parse timestamp 27 Nov 2018 01:27:27 +0000 which is valid according to RFC 5322 section 3.3 and is parsed normally by email clients I tested with.
I tried searching where it parses date but failed to find it so no PR, plz feex it.

http://vc5toxnnomthgu2iqq7x2rc4pq5cqrvs3puspqnxldbryooakrbxbuad.onion/t/de59c0a3211f1368d71fe1c3409f99a64253a174/
http://cathugger.ano:18000/t/de59c0a3211f1368d71fe1c3409f99a64253a174/

nntpchan failed to parse timestamp `27 Nov 2018 01:27:27 +0000` which is valid according to [RFC 5322 section 3.3](https://tools.ietf.org/html/rfc5322#section-3.3) and is parsed normally by email clients I tested with. I tried searching where it parses date but failed to find it so no PR, plz feex it. http://vc5toxnnomthgu2iqq7x2rc4pq5cqrvs3puspqnxldbryooakrbxbuad.onion/t/de59c0a3211f1368d71fe1c3409f99a64253a174/ http://cathugger.ano:18000/t/de59c0a3211f1368d71fe1c3409f99a64253a174/ <!-- github-sync-id:384826145 -->
adam closed this issue 2026-10-05 03:09:49 +02:00
Author
Owner
tbh u should just use https://golang.org/pkg/net/mail/#ParseDate <!-- github-comment-id:442082019 -->
Author
Owner

yeah ParseDate is very new and nntpchan was written during go 1.3

yeah ParseDate is very new and nntpchan was written during go 1.3 <!-- github-comment-id:442093733 -->
Author
Owner

try this latest revision, let me kniw

try this latest revision, let me kniw <!-- github-comment-id:442099798 -->
Author
Owner

seems that parsing works okay now, closing

seems that parsing works okay now, closing <!-- github-comment-id:442193561 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/nntpchan#45