Article View: news.software.readers
Article #221600Re: [dialog] how to archive Sent messages?
From: Rom
Date: Sun, 01 Jun 2008 16:05
Date: Sun, 01 Jun 2008 16:05
77 lines
4378 bytes
4378 bytes
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.
--
Rom
Technical Details
Message-ID:
<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!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<gfr7h5-6gj.ln1@home.invalid> <7o1ttw4x1jow.rv1i41yguzzc$.dlg@40tude.net> <ginah5-mal.ln1@home.invalid>Show Full Headers
Complete Article Headers
Message-ID: <1qilh76b2sfqo.1agd42rn1aulh$.dlg@40tude.net> Subject: Re: [dialog] how to archive Sent messages? Date: Mon, 2 Jun 2008 02:05:14 +1000 From: Rom <-@-.invalid> References: <gfr7h5-6gj.ln1@home.invalid> <7o1ttw4x1jow.rv1i41yguzzc$.dlg@40tude.net> <ginah5-mal.ln1@home.invalid> 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!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 77 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net 3ERoyJ2GwT37g05lrzmY1QGpPG7pjGFtLp/i+Cs8MI17U5LxAC Cancel-Lock: sha1:IHcvaxNL9uan1wJ/Xwit2c7LkTk= User-Agent: 40tude_Dialog/2.0.15.84 Archive: no X-No-Archive: yes