Commit graph

207 commits

Author SHA1 Message Date
3a0dac2c41 Consolidate message sending into nntp.client.socket
Consolidate message sending into nntp.client.socket, to allow for
usage of the same code to send messages to both clients and servers
2024-12-05 21:56:58 -05:00
293c2ab1cf Make RemoteException explicitly take Response argument 2024-12-05 18:30:52 -05:00
657c6d4b98 Implement Client.get_message_by_id() 2024-12-05 15:07:44 -05:00
447e593edb Fix superfluous whitespace 2024-12-05 15:07:21 -05:00
c28c9b7a72 Implement Client.select_group() 2024-12-05 15:06:59 -05:00
f3e0c7dbdc Rename things for sake of consistency 2024-12-05 14:29:19 -05:00
48f9f4b3b2 Rename print_newsgroup() to print_newsgroup_summary() 2024-12-05 14:21:22 -05:00
1a881145f9 Implement a few more specialty remote newsgroup types 2024-12-05 14:19:49 -05:00
329c695131 Implement LIST NEWSGROUPS client method 2024-12-05 14:19:32 -05:00
00264b2d16 Fix LIST NEWSGROUPS output format to comply to RFC 3977 2024-12-05 14:16:58 -05:00
7824c8e47b Implement method to fetch message summaries from newsgroups 2024-12-05 12:44:24 -05:00
616e767c0c Fix NEWGROUPS client method 2024-12-05 08:39:17 -05:00
4aa222dc8f Whoops! Remove wildmat argument from NEWGROUPS implementation 2024-12-05 08:38:46 -05:00
0d41ea1d2b Make NEWGROUPS honor date, time 2024-12-04 23:52:29 -05:00
71fcf0960b Tweak exception handling 2024-12-04 23:28:25 -05:00
ff19d88c3e Skip certain headers in OVER results 2024-12-04 23:23:54 -05:00
1698eaafce Move RemoteNewsgroup to lib/nntp/tiny/remote.py 2024-12-04 23:07:50 -05:00
a145b34726 Implement Client.each_response_line() 2024-12-04 22:35:49 -05:00
3067b812d5 Fix NEWNEWS 2024-12-04 22:25:48 -05:00
ba597eaf7f Ensure server welcome message is read on client connect 2024-12-04 21:43:39 -05:00
0696008af8 Initial implementation of nntp.tiny.client 2024-12-04 18:28:59 -05:00
f2a60a8b1a Move buffered input, output handling into lib/nntp/tiny/socket.py 2024-12-04 18:13:38 -05:00
9ea8306806 Use default attribute value of None when attributes are missing 2024-12-04 17:22:33 -05:00
f128cb3d04 Implement Host.is_hostname() 2024-12-04 16:32:23 -05:00
36d048713f Move functions for testing for IPv4, IPv6 addresses to nntp.tiny.host 2024-12-04 16:30:19 -05:00
a319650004 Implement Database.update() to change only modified columns 2024-12-04 14:36:11 -05:00
16ac4906d0 Implement tracking changes of individual database object values 2024-12-04 14:35:46 -05:00
5920b8e6c2 Ensure Message superclass constructor is called 2024-12-04 14:34:58 -05:00
9add3495f7 Add /usr/local/etc/nntp-tiny/server.conf to search path 2024-12-04 12:14:40 -05:00
6ac3f14868 Rename ConfigValueException to ConfigOptionException 2024-12-04 12:06:08 -05:00
1e915b5007 Implement Config.section() to fetch, validate config sections 2024-12-04 12:03:54 -05:00
7653ebdd29 Build config validation into Config.get() accessor 2024-12-04 11:48:56 -05:00
3a608a1636 Add more config file validation 2024-12-04 10:59:51 -05:00
a2947a574c Add support for binding to both IPv4 and IPv6 addresses by hostname 2024-12-04 10:08:17 -05:00
456d563f92 Allow specifying arbitrary number of listener hosts 2024-12-04 09:08:39 -05:00
9cb8b2e0e4 Fix SSLEOFError handler by moving into thread context 2024-12-03 23:50:12 -05:00
32281a3aa2 Implement support for IPv6 listener
Implement support for IPv6 listener via Python selectors module to
monitor multiple listening sockets
2024-12-03 23:38:45 -05:00
6944f3f898 Don't forget to exit() on SIGTERM 2024-12-03 17:00:49 -05:00
07689f87cb Implement PID file support in nntp.tiny.daemon 2024-12-03 16:53:31 -05:00
58b2b5c1da Only discard ssl.SSLEOFError in Server.run() 2024-12-03 12:17:55 -05:00
21a6f3e3f2 Implement TLS listener support 2024-12-03 12:14:45 -05:00
fefd990d89 Remove unnecessary line 2024-12-03 10:19:00 -05:00
09e8d01d3a Add config file support for listener, database 2024-12-02 23:19:01 -05:00
ee1c98c82d Rename 'active' to 'writable' 2024-12-02 17:22:56 -05:00
ea16a989f6 Implement checking for active newsgroup flag 2024-12-02 15:14:55 -05:00
888d25394a Add 'active' column to newsgroup 2024-12-02 15:09:32 -05:00
1346ece242 Better solution for generating WHERE clause for message ranges 2024-12-02 14:44:37 -05:00
cefc2c1125 Fix broken LISTGROUP 2024-12-02 14:29:27 -05:00
454eb2aec9 Fix redeclaration of Session._newsgroup_summary() 2024-12-02 14:19:32 -05:00
d0628b9031 Ensure Message.validate() checks Message-ID format 2024-12-01 23:20:47 -05:00