Comments (5)
@filieski Thanks for reporting! Could you provide what Ruby and Discourse versions you’re running?
from discourse-nntp-bridge.
Discourse:
v2.2.0.beta3 +4
Ruby:
$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
Cyrus NNTPd:
2.5.10-3
from discourse-nntp-bridge.
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 (000000
instead of GMT
or no value at all) to the NEWNEWS command.
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 nntp.newnews
)
Reference: https://github.com/cyrusimap/cyrus-imapd/blob/master/imap/nntpd.c
https://tools.ietf.org/html/rfc3977#section-7.3
from discourse-nntp-bridge.
Actually according to the RFC and the Cyrus code, I should replace it to
nntp.newnews(wildmat, '19700101', '000000 GMT')[1].uniq.map{ |message_id| message_id[1..-2] }
Now it seems like it's working but I still don't get messages.
I dumped the network traffic on port 119 and I get the following:
NEWNEWS shared.zTest.uncateg 19700101 000000 GMT
230 List of new articles follows:
.
Which might be an issue on my end. I haven't tested enough.
Thanks for proposed fix. I am still testing and I will let you know soon.
from discourse-nntp-bridge.
@filieski Did you end up with a fix here?
from discourse-nntp-bridge.
Related Issues (20)
- Support for followup newsgroups
- Undefined behaviour: If post reply -> NNTP runs before post topic -> NNTP
- Add setting for NNTP user agent
- If a newsgroup importer consistently throws an exception, excess Sidekiq retries build up
- Posting to NNTP should convert Discourse quotes to regular quote syntax
- Email address isn't being matched to user email on import
- Space after author quote
- Banner notices shouldn't be posted to NNTP
- New replies to a topic from NNTP don't bump the topic date
- Switch to using PostCreator for importing posts HOT 2
- Create tests for post importing & exporting
- Guest user isn't being used for guest posts
- Create way to disable syncing for newsgroup(s)
- NNTP quotes with comments directly below the quote get marked as quotes
- Send NNTP control.cancel when a post is deleted
- NNTP References Mess Up Importer's Post Organizer
- Discourse Schema Change HOT 1
- Bad date/time on Cyrus
- Still supported? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discourse-nntp-bridge.