-
Notifications
You must be signed in to change notification settings - Fork 2
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad date/time on Cyrus #30
Comments
@filieski Thanks for reporting! Could you provide what Ruby and Discourse versions you’re running? |
Discourse: Ruby: Cyrus NNTPd: |
Thank you! Just dug through the Cyrus source and NNTP RFC. The “Bad date/time” error is coming as a response from the Cyrus server, due to this plugin sending an unknown value for the time zone ( Could you try changing this line in server.rb? nntp.newnews(wildmat, '19700101', '000000')[1].uniq.map{ |message_id| message_id[1..-2] } To nntp.newnews(wildmat, '19700101', 'GMT')[1].uniq.map{ |message_id| message_id[1..-2] } (If that doesn’t work, try the empty string, or omit the third argument to Reference: https://github.com/cyrusimap/cyrus-imapd/blob/master/imap/nntpd.c |
Actually according to the RFC and the Cyrus code, I should replace it to
Now it seems like it's working but I still don't get messages.
Which might be an issue on my end. I haven't tested enough. |
@filieski Did you end up with a fix here? |
I am not able to get this plugin to work with Cyrus.
First, I had an issue where the 'rake discourse_nntp_bridge:assign_newsgroups' would not recognize newsgroups (cyrus shared folders). I figured that it's because Cyrus is case sensitive so I had to remove the .downcase off of this line
The next error I get is "Job exception: Bad date/time". I found no discrepancy between the date and time of the Cyrus and Discourse servers.
Here's the full backtrace from Discourses /logs
Did anyone get this plugin working with Cyrus?
The text was updated successfully, but these errors were encountered: