🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
15 messages
15 total messages Started by Spacey Spade Fri, 24 Apr 2009 03:51
40tude scoring and actions
#232716
Author: Spacey Spade
Date: Fri, 24 Apr 2009 03:51
2 lines
1022 bytes
40tude newsreader.  Is it possible to move an entire thread to a different
folder as an action?
Re: 40tude scoring and actions
#232706
Author: Rom
Date: Fri, 24 Apr 2009 06:02
18 lines
1421 bytes
On Thu, 23 Apr 2009 22:51:55 -0500, Spacey Spade wrote:

> 40tude newsreader.  Is it possible to move an entire thread to a different
> folder as an action?

Yes, for example:

!move(target_folder) Subject whatever

Replace "target_folder" with the actual folder name.
Or, if it's another group then replace "target_folder" with the name
of the group and the server name you've given it and displayed after
the group name, e.g. name.of.group;server

Replace "whatever" with what you want to match.

-- 
Rom
Re: 40tude scoring and actions
#232709
Author: VanguardLH
Date: Fri, 24 Apr 2009 10:36
44 lines
3627 bytes
Rom wrote:

> On Thu, 23 Apr 2009 22:51:55 -0500, Spacey Spade wrote:
> 
>> 40tude newsreader.  Is it possible to move an entire thread to a different
>> folder as an action?
> 
> Yes, for example:
> 
> !move(target_folder) Subject whatever
> 
> Replace "target_folder" with the actual folder name.
> Or, if it's another group then replace "target_folder" with the name
> of the group and the server name you've given it and displayed after
> the group name, e.g. name.of.group;server
> 
> Replace "whatever" with what you want to match.

But, as requested by the OP, would that move the *entire* thread or
would it just move the single post on which that filter matched?  How
could the OP make the filter apply the action for the matching post
along with all the subsequent replies to that post (i.e., recurse the
action into all posts for a subthread)?

Users sometimes change the Subject.  The user would have to use a regex
that takes into account the "Re:" in replies (unless just matching on a
substring).  The filter may not even be testing on the Subject but
instead on a particular poster (and want to move their posts and all
replies to them into another folder for, say, tracking that poster's
[sub]threads).  The OP asked how to move an entire thread but I'm not
sure the qualification of what is the thread would necessarily be
dictated by the Subject header.  The OP could be trying to move all
threads started by a particular poster into another folder but the
filter would only move that poster's articles and not the replies to
them that constitute the [sub]threads.  

Hard to tell without knowing how the OP qualifies what constitutes a
thread on which they would try to catch with a filter.  Its the
References header that actually defines the thread even if the Subject
header changes.  Seems a script would be needed to recurse through the
posts to trace through the References header to build the thread to then
move all its posts to the other folder.  But then maybe "thread" meant
to just move single posts somewhere else and not actually move the
entire thread.
Re: 40tude scoring and actions
#232714
Author: Rom
Date: Fri, 24 Apr 2009 12:42
42 lines
2560 bytes
On Fri, 24 Apr 2009 05:36:19 -0500, VanguardLH wrote:

> Rom wrote:
> 
>> On Thu, 23 Apr 2009 22:51:55 -0500, Spacey Spade wrote:
>> 
>>> 40tude newsreader.  Is it possible to move an entire thread to a different
>>> folder as an action?
>> 
>> Yes, for example:
>> 
>> !move(target_folder) Subject whatever
>> 
>> Replace "target_folder" with the actual folder name.
>> Or, if it's another group then replace "target_folder" with the name
>> of the group and the server name you've given it and displayed after
>> the group name, e.g. name.of.group;server
>> 
>> Replace "whatever" with what you want to match.
> 
> But, as requested by the OP, would that move the *entire* thread or
> would it just move the single post on which that filter matched?

The original post was a generic question without specifics. It's an
example and would move all posts matching the Subject rule used.
Subject isn't the only header to use for scoring and actions, but
likely a good one to use for this unless the Message-ID or something
is known in advance.

Say, if you see an original post of a thread you want to move, create
two rules on Message-ID and References using the OP MID, then manually
apply to move existing message(s) and to also work when retrieving. Or
could manually move the existing message(s) by "Message > Copy/Move
selected articles" then create an action rule on References using the
OP MID. For example:

[name.of.group]
!move(target_folder) Message-ID example@mid.invalid
!move(target_folder) References example@mid.invalid

-- 
Rom
Re: 40tude scoring and actions
#232746
Author: Spacey Spade
Date: Sat, 25 Apr 2009 05:10
14 lines
1840 bytes
On Fri, 24 Apr 2009 05:36:19 -0500, VanguardLH wrote:
[snip]
> Hard to tell without knowing how the OP qualifies what constitutes a
> thread on which they would try to catch with a filter.  Its the
> References header that actually defines the thread even if the Subject
> header changes.  Seems a script would be needed to recurse through the
> posts to trace through the References header to build the thread to then
> move all its posts to the other folder.  But then maybe "thread" meant
> to just move single posts somewhere else and not actually move the
> entire thread.

I would like a move/copy action based on the reference header, for any
thread in which I participated.  Can 40tude do this?  Can another
newsreader?
Re: 40tude scoring and actions
#232754
Author: Eggs Zachtly
Date: Sat, 25 Apr 2009 11:59
27 lines
2522 bytes
Spacey Spade said:

> On Fri, 24 Apr 2009 05:36:19 -0500, VanguardLH wrote:
> [snip]
>> Hard to tell without knowing how the OP qualifies what constitutes a
>> thread on which they would try to catch with a filter.  Its the
>> References header that actually defines the thread even if the Subject
>> header changes.  Seems a script would be needed to recurse through the
>> posts to trace through the References header to build the thread to then
>> move all its posts to the other folder.  But then maybe "thread" meant
>> to just move single posts somewhere else and not actually move the
>> entire thread.
> 
> I would like a move/copy action based on the reference header, for any
> thread in which I participated.  Can 40tude do this?  

Yes. You'll need to set a FQDN.

> Can another newsreader?

Sure.

-- 

Eggs

I went to San Francisco. I found someone's heart.
Re: 40tude scoring and actions
#232804
Author: Spacey Spade
Date: Sun, 26 Apr 2009 06:12
26 lines
2188 bytes
On Sat, 25 Apr 2009 06:59:04 -0500, Eggs Zachtly wrote:

> Spacey Spade said:
> 
>> On Fri, 24 Apr 2009 05:36:19 -0500, VanguardLH wrote:
>> [snip]
>>> Hard to tell without knowing how the OP qualifies what constitutes a
>>> thread on which they would try to catch with a filter.  Its the
>>> References header that actually defines the thread even if the Subject
>>> header changes.  Seems a script would be needed to recurse through the
>>> posts to trace through the References header to build the thread to then
>>> move all its posts to the other folder.  But then maybe "thread" meant
>>> to just move single posts somewhere else and not actually move the
>>> entire thread.
>> 
>> I would like a move/copy action based on the reference header, for any
>> thread in which I participated.  Can 40tude do this?  
> 
> Yes. You'll need to set a FQDN.
> 
>> Can another newsreader?
> 
> Sure.

??? How would a FQDN help?  It may help distinguish my posts, but how to
move/copy the entire thread?
Re: 40tude scoring and actions
#232811
Author: Eggs Zachtly
Date: Sun, 26 Apr 2009 09:30
37 lines
3019 bytes
Spacey Spade said:

> On Sat, 25 Apr 2009 06:59:04 -0500, Eggs Zachtly wrote:
> 
>> Spacey Spade said:
>> 
>>> On Fri, 24 Apr 2009 05:36:19 -0500, VanguardLH wrote:
>>> [snip]
>>>> Hard to tell without knowing how the OP qualifies what constitutes a
>>>> thread on which they would try to catch with a filter.  Its the
>>>> References header that actually defines the thread even if the Subject
>>>> header changes.  Seems a script would be needed to recurse through the
>>>> posts to trace through the References header to build the thread to then
>>>> move all its posts to the other folder.  But then maybe "thread" meant
>>>> to just move single posts somewhere else and not actually move the
>>>> entire thread.
>>> 
>>> I would like a move/copy action based on the reference header, for any
>>> thread in which I participated.  Can 40tude do this?  
>> 
>> Yes. You'll need to set a FQDN.
>> 
>>> Can another newsreader?
>> 
>> Sure.
> 
> ??? How would a FQDN help?  It may help distinguish my posts, but how to
> move/copy the entire thread?

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?
-- 

Eggs

What if there were no hypothetical questions?
Re: 40tude scoring and actions
#232853
Author: Spacey Spade
Date: Mon, 27 Apr 2009 08:53
37 lines
2711 bytes
On Sun, 26 Apr 2009 04:30:41 -0500, Eggs Zachtly wrote:

> Spacey Spade said:
> 
>> On Sat, 25 Apr 2009 06:59:04 -0500, Eggs Zachtly wrote:
>> 
>>> Spacey Spade said:
>>> 
>>>> On Fri, 24 Apr 2009 05:36:19 -0500, VanguardLH wrote:
>>>> [snip]
>>>>> Hard to tell without knowing how the OP qualifies what constitutes a
>>>>> thread on which they would try to catch with a filter.  Its the
>>>>> References header that actually defines the thread even if the Subject
>>>>> header changes.  Seems a script would be needed to recurse through the
>>>>> posts to trace through the References header to build the thread to then
>>>>> move all its posts to the other folder.  But then maybe "thread" meant
>>>>> to just move single posts somewhere else and not actually move the
>>>>> entire thread.
>>>> 
>>>> I would like a move/copy action based on the reference header, for any
>>>> thread in which I participated.  Can 40tude do this?  
>>> 
>>> Yes. You'll need to set a FQDN.
>>> 
>>>> Can another newsreader?
>>> 
>>> Sure.
>> 
>> ??? How would a FQDN help?  It may help distinguish my posts, but how to
>> move/copy the entire thread?
> 
> 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.
Re: 40tude scoring and actions
#232863
Author: VanguardLH
Date: Mon, 27 Apr 2009 14:39
52 lines
4204 bytes
Spacey Spade wrote:

> Eggs Zachtly wrote:
>> 
>> Spacey Spade said:
>>> 
>>> Eggs Zachtly wrote:
>>>> 
>>>> Spacey Spade said:
>>>>> 
>>>>> VanguardLH wrote:
>>>>>> 
>>>>>> Hard to tell without knowing how the OP qualifies what constitutes a
>>>>>> thread on which they would try to catch with a filter.  Its the
>>>>>> References header that actually defines the thread even if the Subject
>>>>>> header changes.  Seems a script would be needed to recurse through the
>>>>>> posts to trace through the References header to build the thread to then
>>>>>> move all its posts to the other folder.  But then maybe "thread" meant
>>>>>> to just move single posts somewhere else and not actually move the
>>>>>> entire thread.
>>>>> 
>>>>> I would like a move/copy action based on the reference header, for any
>>>>> thread in which I participated.  Can 40tude do this?  
>>>> 
>>>> Yes. You'll need to set a FQDN.
>>> 
>>> ??? How would a FQDN help?  It may help distinguish my posts, but how to
>>> move/copy the entire thread?
>> 
>> 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.

As alluded to in my reply, I suspect the only way to move the entire
[sub]thread based solely on identifying the starter post is to use a
recursive script.  You'd have to write a script, assign it to a button,
and add the button to the toolbar.  I don't do Object Pascal (Delphi) so
I don't know how to create the script that you want.  There might be
something you can hack together from the script library for 40tude
Dialog at http://www.40tude.com/dialog/wiki/index.php/Script_Library,
like maybe the PostShow script but that doesn't have code for moving the
list to another folder but only to identify the list and show it.  This
script has you specify the depth to which you will list your posts and
replies to them but you should be able to modify it to make it recurse
indefinitely to get all replies at any depth (or just make it larger
than you would ever want to trace through the replies, like maybe 10
deep or something extreme like 9999).  I've adapted several scripts from
there for my own use.  Without them, I would not have chosen Dialog as
my replacement newsreader.
Re: 40tude scoring and actions
#232866
Author: 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
Re: 40tude scoring and actions
#232876
Author: VanguardLH
Date: Tue, 28 Apr 2009 10:08
23 lines
3141 bytes
Bernd Rose wrote:

> 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"

Wouldn't that only work if you configure your newsreader to have it
generate the MID header (and hope the NNTP server doesn't overwrite it
with a MID of its own)?  In other words, you are looking for the FQDN in
the MID that *your* newsreader generates for your post submissions.  

I don't remember if the default in Dialog (under the Identities config)
is to have it generate its own MIDs.  I have it disabled but it is
possible that I turned it off, or it is possible that it was off by
default.  Obviously it needs to have a unique FQDN portion for the MID
that doesn't match on anything that anyone else might use.  As I recall,
most Forte Agent users end up having 4ax.com as the FQDN which means
they would never be able to different their posts based on that commonly
used FDQN.  They would have to change it and ensure it was unique from
anything anyone else would use.  Of course, an imposter could also
configure their newsreader to insert the same FQDN to look like you.
Re: 40tude scoring and actions
#232879
Author: Spacey Spade
Date: Tue, 28 Apr 2009 10:09
27 lines
2592 bytes
On Mon, 27 Apr 2009 23:46:41 +0200, Bernd Rose wrote:

> 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.
>
> [snip detailed options]
>
> 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

Why you so awesome man?  You cut that out now, ye here.
Re: 40tude scoring and actions
#232910
Author: Oliver Cromm
Date: Wed, 29 Apr 2009 03:21
24 lines
3082 bytes
* Bernd Rose <b.rose.tmpbox@expires-2009-04-30.arcornews.de> wrote:

> 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

Thinking further along the lines set out by you - if the References
header can be accessed before sending (I don't know if it can), a script
called in OnBeforeSending could write the first reference out to a text
file, which in most cases should be the root article of a thread in
which one posted. Then your OnXover script could be changed or extended
to look for those References.

Or one could try similar automation with the Subject or with the MID.

However, this scenario gets quite complicated if one uses more than one
newsreader (e.g. two Dialog installations on two different machines). 

-- 
Java is the SUV of programming tools.
A project done in Java will cost 5 times as much, take twice as long,
and be harder to maintain than a project done in a scripting language
such as PHP or Perl. - Philip Greenspun
Re: 40tude scoring and actions
#232912
Author: Oliver Cromm
Date: Wed, 29 Apr 2009 03:21
22 lines
2847 bytes
* VanguardLH <V@nguard.LH> wrote:

>> !copy(Deposit) Message-ID "@myFQDN.example" | References "@myFQDN.example"
> 
> Wouldn't that only work if you configure your newsreader to have it
> generate the MID header (and hope the NNTP server doesn't overwrite it
> with a MID of its own)?  In other words, you are looking for the FQDN in
> the MID that *your* newsreader generates for your post submissions.  

Though I can't exclude the existence of such a beast, I have never
myself encountered a news server that overwrote my MIDs.
 
> I don't remember if the default in Dialog (under the Identities config)
> is to have it generate its own MIDs.  I have it disabled but it is
> possible that I turned it off, or it is possible that it was off by
> default.

It should be off by default in any decent newsreader, because you should
use that feature only with your own FQDN.

-- 
"Bother", said the Borg, as they assimilated Pooh.
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