From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43910 Path: main.gmane.org!not-for-mail From: Frank Schmitt Newsgroups: gmane.emacs.gnus.general Subject: Re: The two Servers Date: Sun, 17 Mar 2002 18:53:07 +0100 Organization: Hamme net, kren mer och nimmi Sender: owner-ding@hpc.uh.edu Message-ID: References: Reply-To: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016391395 27189 127.0.0.1 (17 Mar 2002 18:56:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 17 Mar 2002 18:56:35 +0000 (UTC) Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16mfpb-00074R-00 for ; Sun, 17 Mar 2002 19:56:35 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16mfo5-0003ao-00; Sun, 17 Mar 2002 12:55:01 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 17 Mar 2002 12:55:03 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id MAA02365 for ; Sun, 17 Mar 2002 12:54:51 -0600 (CST) Original-Received: (qmail 2544 invoked by alias); 17 Mar 2002 18:54:40 -0000 Original-Received: (qmail 2539 invoked from network); 17 Mar 2002 18:54:40 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 17 Mar 2002 18:54:40 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 16mfsI-0001Ff-00 for ; Sun, 17 Mar 2002 19:59:22 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 36 Original-NNTP-Posting-Host: pppin90.max-hochsimmer.rz-online.net Original-X-Trace: quimby.gnus.org 1016391562 4814 212.7.169.90 (17 Mar 2002 18:59:22 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 17 Mar 2002 18:59:22 GMT X-Posting-Agent: Hamster/1.3.23.4 X-Face: :EL9TzGRN){7|oE2~xQ8Q(VjpjsXgX$~gi&rYD5J5p)$w\Thdl~v:7h`/n)J!8nXT%_+Wj6}@EHM8}QbA(9nX-wrQ:ch1%DauV[?kFasXUcnL#+"K8zOx&$@/M'/},q-eztaJra1|?C+p$h\2XnK-HB"8_U writes: >>I wished it was this easy. Problem number one: At home I've got a dialup >>connection and I don't like Gnus agent, so I've got to use a local nntp >>server (That's hamster in my case). > >Does your Hamster fetch its news from the same server you use at >university? Maybe it's possible to tell it to store its articles using >the same numbers as the upstream server; then you could easily sync >your .newsrc files. I'm just writing an application to solve my problem, here's what it does: It gets as input the name of a server and the information if it should be slave or master. If it's master then it opens a file consisting of pairs from article-number and corresponding message-ids (for this server), which was created by previous runs of the program. Then it opens ~/.newsrc, looks up for which articles the message-id is still missing, and gets those message-ids from the newsserver. After that it creates a file including the message-ids from all articles listed in ~/.newsrc. If it's started as slave, it reads the file the master created (the file with the message-id's of read articles), gets the corresponding article numbers (like above, already known ones from a file, new ones from the server) and creates a new ~/.newsrc. -- One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them In the Land of Mordor where the Shadows lie. 19. Dezember 2001