🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #232866

Re: 40tude scoring and actions

#232866
From: Bernd Rose
Date: Mon, 27 Apr 2009 21:46
111 lines
5729 bytes
On Mon, 27 Apr 2009 03:53:16 -0500, Spacey Spade wrote:

>> In order to perform any action on a thread in which you participated in,
>> you'll need a way to mark posts that you make, no? How do you plan to do
>> that without an FQDN?
> 
> So how do you move a thread which has a post that matches some identifier,
> that's the question I hoped to get answered.

Scoring/Actions will not help you in moving articles written /before/ the 
post containing the identifier. For the post itself and all follow-ups
still referencing your posting, the following should do:

!copy(Deposit) Message-ID "@myFQDN.example" | References "@myFQDN.example"

For Scripting I can think of two scenarios. The first only gives partial
support for you task. Create a script containing:

# --------------------snip------------------
Program MoveArticle;
Begin
 Ado('CollapseThread');
 Ado('CopyMoveArticle');
 Ado('FindNext');
End.
# --------------------snip------------------

and assign it to an easy shortcut key. After that you can search for your 
"From" address in the Header pane (set selected/all groups appropriately).
When your search was successful, then press above mentioned shortcut to
initiate the copy/move action. Be sure to set action and target correctly
and hit okay. Repeat the <shortcut>..<okay> cycle until no article with
your From can be found, anymore. Be sure to not skip over the "not found"
message box by hitting <okay> without looking. Else, threads without your
participation will be moved as well...  ;-)

Please note, that after you move those threads, new follow-ups can not be
found so easily. Therefore, it is best to only incorporate this method
for older threads. If you don't move articles written by you via scoring,
you can combine this shortcut method and the scoring variant. While you
move your own articles and its predecessors by shortcut, you move the
follow-ups by scoring. Still, later articles /not/ being follow-ups to
your own posting will be ignored.

The second scenario for Scripting would involve storing the subjects of 
the threads with your participation in external text files during the
OnXOver event:

# --------------------snip------------------
Program OnXover;
Uses Textfile;
Const
 sFile = 'C:\TEMP\My_Threads.txt';
 sMID = '@myFQDN.example';

Procedure OnXover(Var XoverData:TXoverData);
Var
 objFile : TextFile;
 hFile : Integer;
 sSubj, sLine : String;
 bFound : Boolean;
Begin
 If (Pos(sMID, XoverData.MsgID) > 0) Then
 Begin
  sSubj := XoverData.Subject;
  If Not FileExists(sFile) Then
  Begin
   hFile := FileCreate(sFile);
   FileClose(hFile);
  End;
  AssignFile(objFile,sFile);
  Reset(objFile);
  bFound := False;
  While Not (Eof(objFile) Or bFound) Do
  Begin
   TextReadLn(objFile,sLine);
   bFound := (sLine = sSubj);
  End;
  If Not (bFound) Then 
  Begin
   Append(objFile);
   TextWriteLn(objFile,sSubj);
  End;
  CloseFile(objFile);
 End;
End;

Begin
End.
# --------------------snip------------------

This way, you create a reference list of the threads you participated in.
While this part is easy, selecting and moving those threads later on would
have to be done manually. - Which sure is a tedious task.  ;-)  
Unfortunately, I don't know of any method to select threads by script. It
is not possible to give Ado functions like "Find" arguments. And is not
possible to get results from functions called by Ado, apart from the return
value (boolean) indicating, that the function has been called at all.

Okay. So much for the fun. And now to the way I'd approach such tasks,
myself: Assign all your messages a fixed number by scoring, which will not
be exceeded by any other scoring process. Do the same for any follow-ups
that reference your MsgID. (Maybe a bit lower value to be able to 
distinguish between those two cases.) To move full threads containing your
postings and left-over subthreads that reference your postings, you just 
need to sort the Header pane by "Thread, MaxScore, Date" and select and 
move all collapsed(!!) threads showing the scores you adjusted earlier on 
for your postings and references.

Have fun!  ;-)
Bernd
Technical Details
Message-ID: <145o4ct19l5zl$.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.ecngs.de!ecngs!feeder2.ecngs.de!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
References: <14pi8xeqsjbfr$.l1r6vonl7boe.dlg@40tude.net> <1d9xq2wfrrakn$.6hfqixmk9qzq.dlg@40tude.net> <gss4lf$4br$1@news.motzarella.org> <1omq853u14qiz$.rzl5e62tp7t2$.dlg@40tude.net> <ltglyo28zta8$.dlg@sneupie.eingang.org> <uzwpsr6kf0d4$.1w61hd5okht1i.dlg@40tude.net> <o175kx3n3ove.dlg@sneupie.eingang.org> <d4dpfc5pblji.bp0m55x3oazh$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <145o4ct19l5zl$.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: 40tude scoring and actions
Date: Mon, 27 Apr 2009 23:46:41 +0200
From: Bernd Rose <b.rose.tmpbox@expires-2009-04-30.arcornews.de>
References: <14pi8xeqsjbfr$.l1r6vonl7boe.dlg@40tude.net> <1d9xq2wfrrakn$.6hfqixmk9qzq.dlg@40tude.net> <gss4lf$4br$1@news.motzarella.org> <1omq853u14qiz$.rzl5e62tp7t2$.dlg@40tude.net> <ltglyo28zta8$.dlg@sneupie.eingang.org> <uzwpsr6kf0d4$.1w61hd5okht1i.dlg@40tude.net> <o175kx3n3ove.dlg@sneupie.eingang.org> <d4dpfc5pblji.bp0m55x3oazh$.dlg@40tude.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.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.ecngs.de!ecngs!feeder2.ecngs.de!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.41 (7642e062.95.499)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 111
Organization: Arcor
NNTP-Posting-Date: 27 Apr 2009 23:47:22 CEST
NNTP-Posting-Host: f6789fb5.newsspool1.arcor-online.net
X-Trace: DXC=[C8@RL?HI8VaAeROF2PWMQic==]BZ:af^4Fo<]lROoRQ^YC2XCjHcbYJ_P43AZjRlUQNkb2^RT\kRb]lWgGiMC9]BHd;
 bT<5>mX
X-Complaints-To: usenet-abuse@arcor.de