🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #221613

Re: [dialog] how to archive Sent messages?

#221613
From: Ron Ford
Date: Sun, 01 Jun 2008 22:10
100 lines
5293 bytes
On Mon, 2 Jun 2008 02:05:14 +1000, Rom wrote:

> On Sun, 01 Jun 2008 14:17:51 GMT, vince wrote:
> 
>> On Sun, 1 Jun 2008 02:26:56 +1000, Rom <-@-.invalid> wrote:
>> 
>>>This script can write the currently viewed message to a file:
>>><http://www.40tude.com/dialog/wiki/index.php/FileSubject>.
>> 
>> Thanks.  Although I'll have to figure out how to use scripts with Dialogue
>> and that one looks like it saves individual messages.  Was hoping to save
>> all of them at once in one file that I search for keywords.
> 
> Although the script doesn't do exactly what you want it is better than
> nothing, and even though I have no knowledge of programming or writing
> such scripts, was able to alter it a little bit to make it easier to
> save about 1000 copies of sent posts last time I used it.
> 
> It would be good if there was a script to export all (selected)
> messages from the Sent folder in mbox format to the one file, or even
> if this script could be changed to save all to the one file.
> Changing the saved files to mbox format isn't that hard, for importing
> purposes, as each message needs a From_ line added before the first
> line of the headers.
> 
> The messages saved with this script can either be saved as separate
> files or those with the same subject appended in the same file. I
> found it works better if headers are already showing as an occasional
> message was saved without the headers when the headers aren't. From
> the script, I excluded the line with the asterisks, added switching
> focus back to the headerlist pane, added a key to move up in the
> headerlist pane, and assigned a button to the script, so all I had to
> do was keep clicking the button I put on a toolbar. See below.
> 
> Searching can be done in the Sent folder in Dialog, and if saved with
> this script searching by keyword is easily done with Explorer in Vista
> using its built-in Search, finds the file(s) and then can be opened in
> whatever text editor.
> 
> If you want to try the script in Dialog go to:
> -Settings > Scripting > Enable scripting
> -Settings > Scripting > Scripting > Custom scripts tab.
> -Select File > New Script.
> -Give the script a name, e.g. FileSubject.
> -Delete what's already in the RHS.
> -Copy the script from the wiki and paste into the RHS.
> 
> At the top of the script change the path, and select the options for
> unique files and all headers.
> 
> If don't want the line of asterisks find and delete this text:
> +StringOfChar('*', 75)
>   
> To switch focus from the article pane to the headerlist pane ready for
> the next message add this line near the bottom of the script:
> 
>      ADo('HeaderlistPane');
>     end;
>   End.
> 
> If starting down in the headerlist pane and working up, you can add
> the up arrow key to the bottom of the script too:
> 
>      ADo('HeaderlistPane');
>     PostKey(38, false, false, false, false, false, false, false, false);  
>     end;
>   End.
> 
> -On the bottom left, optionally select an icon for a toolbar button,
> and give it a tooltip description (hint).
> -Select Script > Compile, which "Successfully compiled" at bottom RHS.
> -Select Script > Reload all compiled scripts in Dialog's main window.
> -Close Scripting window.
> -Setting > Configure buttons/shortcuts
> -Select Scripts under Categories, and select the FileSubject command
> -Give it a shortcut (unassigned) and/or drag button to the toolbar.

If, instead, I wanted to use the script that comes as an example:

Program SkipToNextThread;
Begin
lockdisplay;
try
dropmarker;
ADo('CollapseThread');
ADo('NextMessage');
dropmarker;
prevmarker;
prevmarker;
nextmarker
finally
unlockdisplay;
end;
End.

, how would I do that?

Can one activate a script without creating a button?
-- 
Ron Ford
Technical Details
Message-ID: <zr4oiynrn2bf.jx31qvyhni4c$.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.superfeed.net!sp26iad.superfeed.net!not-for-mail
References: <gfr7h5-6gj.ln1@home.invalid> <7o1ttw4x1jow.rv1i41yguzzc$.dlg@40tude.net> <ginah5-mal.ln1@home.invalid> <1qilh76b2sfqo.1agd42rn1aulh$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <zr4oiynrn2bf.jx31qvyhni4c$.dlg@40tude.net>
Subject: Re: [dialog] how to archive Sent messages?
Date: Sun, 1 Jun 2008 17:10:29 -0500
From: Ron Ford <ron@nowhere.net>
References: <gfr7h5-6gj.ln1@home.invalid> <7o1ttw4x1jow.rv1i41yguzzc$.dlg@40tude.net> <ginah5-mal.ln1@home.invalid> <1qilh76b2sfqo.1agd42rn1aulh$.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.superfeed.net!sp26iad.superfeed.net!not-for-mail
Lines: 99
Organization: Newsgroups.com
Newsgroups: news.software.readers
X-Proxy-User: $$s_iz$n-74p
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Report: Please report illegal or inappropriate use to
 <abuse@newsgroups.com>. Forward a copy of ALL headers INCLUDING the body. (DO
 NOT SEND ATTACHMENTS)
X-Comments2: IMPORTANT: Newsgroups.com does not condone, support,
 nor tolerate spam,
 any illegal or copyrighted postings or activity through the newsgroups.com
 network.
X-Comments: This message was posted through Newsgroups.com
X-Original-Bytes: 4812
X-Original-Lines: 116