🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Mr Rubb Sat, 30 Apr 2005 13:50
Lou Please enhance Xnews Duplicate Header handling
#166135
Author: Mr Rubb
Date: Sat, 30 Apr 2005 13:50
112 lines
6712 bytes
"delete duplicates" is very helpful and powerful utility especially when 
using multiple news servers and can be more if enhanced.

There are 2 basic types duplicate headers
-----------------------------------------
Type 1- User created duplicates (not reside on servers) and poster created 
and exist on a server. My primary ISP has have 6 servers across the the us,
my premium serice has one. 
 
In the case of where only one duplicate headed having a previously 
downloaded attachment the other without Xnews can be enhancesd by a change 
to make sure it threads and keep duplicate headers that have files 
attachments threaded AND NOT therwad headers without downloaded 
files. 

Unthreaded duplicate headers are blindly deleted.

I use Xnews V6.12.01 and I know it assigns higher prioriy to origional 
existing headers threaded before using "find missing duplicates" assumes it 
has an attachment and keeps new duplicate headere created by the find 
missing parts unthreaded and deletes the unthreaded.

Somne examples that create duplicated.
    Ex1: If you queued a header posted a server to the same que name twice.
    Ex2: When using "find missing parts" from and server other than the 
         primary or an overriden server will copy all the parts to que in 
         addition to the missing. Resulting is a duplicate only one is 
         threaded.

Type 2 - Posted duplicates, when a corrupt fileis created when posting is 
killed midway into an artical all the parts in the artical are uploaded 
went. It's likely the file existing file being uploaded at kill time is 
corrupt. 
In this case both headers will have an attachment. One may be corrupted and 
you don't want the origional copies, you want to download and thread the 
duplicate.

Xnews can be enhanced to check the server timestamp and delete the older. 
Server duplicarss seem to propagete to ques and when I was baffled that 
some diplicated were never deletesd I tracked that to them "created on the 
server". Thats actually good if the user know that they are server 
duplicats he can download both and use "par" utility to identify if one is 
corrupted. 

If the post came from Xnews could add a tag to the existing identity 
"Dtoken" it puts in headers with a resend number and alwaya thread the 
highest number and trow away the oldest.

In any case some safety tips:
Xnews V6.12.01 assigns higher prioriy to origional existing headers
threaded before using "find missing duplicates" assumes it has an 
attachment and keeps new duplicate headere created by the find missing 
parts unthreaded and deletes the unthreaded.

1- Always compact after creating a que after running delete duplucate.
Also for safety try running compact before deleting duplicates and if its 
not needed the menus will not be highlighted and it wont run.

In addition to defragmenting the file with downloaed files the .QDR or .HDR
files are reorganized sequentially and lower the chance and make it easier 
to delete the duplicates you don't want headers you xnews will delete 
headers. A side benefit is loading and delting header will be 100 times 
faster.

2- i usually do my searching for missing downloads parts before any 
downloading. Thsn override to use the low cost ISP ten only download 
article from the premium server not found on the low cost ISP.

3- In the case where you want to merge 2 queues "delete duplicates can 
still be used

Do this:
. Use show only headers with attached files filter and transfer headers 
with downloads from both queues to a 3rd mew queue. (Do not compact them)
. Run delete duplicatsd on the 3rd new queues to make sure the que has no 
duplicate and compact the new queue..
. Run invert filter on one the the queues your merging and all headers 
without attached files will be diplayed. Select and transfer them all to 
the 3rd new queue. It should be safe now to run delete duplicates and only 
copies without downloaded fiels should be deleted. 
Repeat invert filter tansfer steps on the second ques your merging. 

The key is guarentee there is not more that one duplicate before running 
"delete duplicates" and headers with downloads are copied over first to the         
	 
mergerd que. 

If anything goes wrong you can use the origional queues as a backup since 
you have not compacted them. Just run group undelete all and will remove 
the red "x" and all the header that were downloaded will have green squares 
again. After compacting thet are lost and can only be recovered with OS 
protection like "norton protected recyle bin".

I hope Lou reads this. The topic can be very confusing. As a user this can 
save tons of work and hours.

If your confused try this by creating a small case will clarify everything. 
To create a test case:
Take a few headers with and without downloaded attacments a queue and 
transfer them to que1. Run group undelete selected and transfer the the 
same headers to que2 undelete the origionals so you don't loose anyhting to 
run the test cass.

Que1 and que2 are exactly the same. delete some header with atteched files 
in que1 then delete different headers in que2 befor you start the  test 
case and not compact que1 or 2 after you start the merge. 

Take time be careful, if you make any mistakes just undelete queus 1 and 2 
and start again fresh from the beginning.

Cheers!
MR
Re: Lou Please enhance Xnews Duplicate Header handling
#166134
Author: Mike Yetto
Date: Sat, 30 Apr 2005 14:36
21 lines
1931 bytes
It was April the forty-first, being a quadruple leap year, when Mr
Rubb wrote... 

> "delete duplicates" is very helpful and powerful utility
> especially when using multiple news servers and can be more if
> enhanced. 

As I've said to so many others who post intricate but unuseable 
solutions to their own problem...

I'll look forward to trying your newsreader when it's completed, but 
please have someone else write the help file.

    	Mike "use a spelling AND grammar checker" Yetto
-- 
myetto1 at nycap dot rr dot com
For every Rule, there is an equal and opposite Rule.
    - Ferengi Rule of Acquisition #96.


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads