{"id":172,"date":"2007-05-12T16:33:54","date_gmt":"2007-05-12T14:33:54","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/getting-new-nntp-messages\/"},"modified":"2007-05-12T16:33:56","modified_gmt":"2007-05-12T14:33:56","slug":"getting-new-nntp-messages","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/getting-new-nntp-messages\/","title":{"rendered":"Getting New NNTP Messages"},"content":{"rendered":"<p>>>>No, this is not possible. Messages are requested from the server by<br \/>\n>>>reference. Dates are not specified in the NNTP protocol standards.<br \/>\n>>><br \/>\n>>I beg to differ with you on that point. RFC977 describes a command<br \/>\n>>called NEWGROUPS which takes a time\/datestamp parameter.<br \/>\n><br \/>\n>it retrieves new groups, not new messages<br \/>\n><\/p>\n<p>Forgive my misinterpretation. The best way to handle that situation<br \/>\nis to store the last article value from the GROUP command and use that<br \/>\nto compare with the next GROUP command.<\/p>\n<p>HTH.<\/p>\n<p>>probably you thought about newnews command, but this command is<br \/>\n>uncertain because time on server and\/or client can be incorrect, you<br \/>\n>need ask about earlier messages to prevent losting<br \/>\n><br \/>\nI can see that. However, RFC 977 permits a parameter after the<br \/>\ndate\/time called GMT which means that this is based on the 0 Meridian<br \/>\n(the old Greenwich observatory). I just record the last time the<br \/>\nnews group list was updated based upon the System time (also based on<br \/>\nGMT). <\/p>\n<p>Here&#8217;s the code I execute immediately after the NEWGROUP command<br \/>\ncompletes which puts the time in the variable fLastUpdate.<\/p>\n<p>GetSystemTime(t); {Get&#8217;s the system time which is based upon UL<br \/>\n(a.k.a GMT)}<br \/>\nfLastUpdate := SystemTimeToDateTime(t); {Convert the value we<br \/>\nreceived into a TDateTime}<\/p>\n<p>HTH.<\/p>\n<p>[tags]Delphi, Internet[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>>>>No, this is not possible. Messages are requested from the server by >>>reference. Dates are not specified in the NNTP protocol standards. >>>&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[75,106],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-2M","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/172"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=172"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/172\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}