🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #259582

Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?

#259582
From: VanguardLH
Date: Tue, 29 Sep 2015 04:01
102 lines
5118 bytes
I added the following filter:

# Save copies of posts into a repository.
!copy(Repository) bytes %>0

That is to begin saving a repository of retrieved articles.  Since
copies of articles are stored in the folder, whatever happens on the
server, like articles disappearing from the server, should not affect
the separate copies that I made of the articles.

Query #1: Don't bold the folder or articles copied into the Repository.

I've already seen new articles just retrieved from Dialog showing up
there.  However, since they are new articles, they are bolded in the
Repository folder plus the folder is bolded with a new-count shown after
it.  Since this is a repository of previously retrieved articles, and
since the articles were copied there which means they still exist in the
original newsgroup folder, is there some way to NOT have the folder
bolded, NOT have the copies of newly retrieved articles bolded, and not
show a new-count after the Repository folder?  This is to keep an
archive of previously retrieved articles and normally won't be read and
would prefer no bolding or new-count used on that folder.

If I use:

!copy(Repository),markread bytes %>0

then I suspect the new article in the original newsgroup will also get
marked as read.  I do want to know when new articles show up in the
newsgroup, just not the articles copied into the Repository folder.

Query #2: Do !copy only on auto run of filters, not on manual run.

Is there any way to omit this filter when ran manually (instead of
automatically by Dialog upon retrieving a new article)?  If I have to
run the filters manually, wouldn't the !copy filter result in duplicate
articles in the Repository folder (once when ran automatically upon
Dialog retrieving a new article and again when I manually ran the
filters)?

Query #3: Omit a folder (Repository) in script.

I looked around trying to find a setting for the default view when
visiting a newsgroup folder.  Didn't find one.  Eventually I remembered
that this had to be defined in a script that evented on my clicking on a
newsgroup folder.  So I looked in Dialog's scripts and found
a message script called NGLV-WM_LBUTTONUP.ds.  I probably got it from
http://dialog.datalist.org/scripts/script_library.html and then modified
it to select a default view when clicking on (entering) a newsgroup.
The script runs:
____________________

// Get new headers when clicking on a group. 

program NGLV_WM_LBUTTONUP;

procedure OnWMessage(var Msg:TMessage;var handled:boolean);
  begin   
    lockdisplay;
    try
      ADo('GetNewHeadersInSelectedGroups');  // Get new posts in the selected group.
    finally
      unlockdisplay;
    end;
    try
      ADo('HeaderlistPane');                 // Change focus to header list pane.
    finally
      unlockdisplay;
    end;
    lockdisplay;
    try
      ADo('View6');                          // View6 must show Not Ignored posts and not select the complete thread (it just hides ignored posts).
    finally
      unlockdisplay;
    end;
    lockdisplay;        
    try
      ADo('CollapseAllThreads');            // Collapse all threads for compact list.
    finally
      unlockdisplay;
    end;     
    PostKey(80, true, false, true, false, false, false, false, false);  // Move to parent
    PostKey(36, false, false, true, false, false, false, false, false); // Move to top
    handled := false;
  end;

begin
end.
____________________

The ADo('View6') line selects the view.  I need to exclude it from
operating when the Repository folder is selected.  Looks like I'd need
an 'if' statement that would run the ADo() command if the current folder
(the one on which I click) is NOT named "Repository".  That way,
whatever view was last used on the Repository would stick.

Query #4:  Max size of newsgroup folders?

Is there a known limit on the number of records (articles) that can be
listed within a newsgroup or other folder?  If so, I'd have to watch the
size somehow (don't know how to do that yet) to make sure the Repository
folder didn't get so big that it got corrupted.  
Technical Details
Message-ID: <d6ugo3F1q7fU1@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <d6optbFjbkcU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <d6ugo3F1q7fU1@mid.individual.net>
Subject: Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
Date: Mon, 28 Sep 2015 23:01:06 -0500
From: VanguardLH <V@nguard.LH>
References: <d6optbFjbkcU1@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: Usenet Elder
Lines: 102
Sender: VanguardLH <>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net +7+FpSxYN2fNWOtHmPT0rAXOEtBmHZDqNTm1EPaagMJXOSLkvE
Keywords: VanguardLH VLH811
Cancel-Lock: sha1:PKXbh/vwXI7WeEwBOjiudpNmjpY=
User-Agent: 40tude_Dialog/2.0.15.41
X-Received-Bytes: 4953
X-Received-Body-CRC: 3453057630