• 40tude Ddialog - sent messages

    From Mickey@21:1/5 to All on Tue May 7 22:13:23 2024
    How do I save all the messages that are in the "Sent" folder?

    Would like save them as plain text and archive them, but File >> Save
    selected messages is grayed out and unresponsive.

    Have poked around in the data directory but the files that look
    interesting appear to be compressed in some way I can't decode.

    Is it possible to save/export/decode the messages in the Sent folder?
    If yes, how to get them in a plain text file that gvim can read?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Thompson@21:1/5 to All on Tue May 7 21:20:48 2024
    On Tue, 07 May 2024 22:13:23 +0000, Mickey <Mickey8080@gmail.invalid>
    wrote:

    How do I save all the messages that are in the "Sent" folder?


    You just need to find the posted messages on the newsgroup to save them.

    You can use Notepad++ to combine them and save to a file.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bernd Rose@21:1/5 to Mickey on Wed May 8 19:56:29 2024
    On Wed, 08 May 2024 17:34:33 +0000, Mickey wrote:

    Michael Thompson wrote:

    You just need to find the posted messages on the newsgroup to save them.

    The posts in my Sent folder go back much further than my news servers retention period. Need to archive posts going back to 2010. Suppose
    I could hunt them down individually by Message-ID on howardknight, but 'twould be less time consuming to save them out of my Sent folder.

    You can try the following script. It should work with Sent. Switch the
    "Headers view" (cf. message view options) on prior to running the script,
    if you want to export them as well. (And not only the plain message text.)
    The script has few error trappings, but usually should work well enough.
    It will abort, though, if you at some time sent 2 equal messages in a row. Switching on "Headers view" should reduce this possibility.

    The script always works for the current group. Adjust the export file
    name and divider character to your needs in the "Const" section of the
    script. And maybe assign it to a toolbar button or a hotkey. It can be
    run safely from inside the Script Editor. (After saving and compiling
    it, of course.)

    HTH.
    Bernd

    -------------------------------------------------------------------------

    Program ExportMessages;
    Uses StdCtrls, Forms, Textfile;
    Const
    FileName = 'C:\Temp\Dialog_Export.txt';
    DividerChar = '=';
    Var
    iCount: Integer;
    bFirst: Boolean;
    txtForm: TForm;
    txtMemo: TMemo;
    txtMemo2: TMemo;
    Procedure WriteTxtFile;
    Var
    txtFile: TextFile;
    Begin
    AssignFile(txtFile, FileName);
    If fileexists(FileName)
    Then
    Begin
    Append(txtFile);
    txtMemo.Lines.Insert(0, #13+#10+#13+#10+StringOfChar(DividerChar, 80)+#13+#10+#13+#10);
    End
    Else Rewrite(txtFile);
    TextWrite(txtFile, txtMemo.text);
    CloseFile(txtFile);
    End;
    Begin
    txtForm := TForm.Create(nil);
    txtMemo := TMemo.Create(txtForm);
    txtMemo.Parent := txtForm;
    txtMemo2 := TMemo.Create(txtForm);
    txtMemo2.Parent := txtForm;
    iCount := 0;
    bFirst := True
    txtMemo2.Lines.Add(StringOfChar('§', 20)+' DUMMY '+StringOfChar('§', 20));
    LockDisplay;
    Try
    ADo('FirstMessage');
    While txtMemo.Text <> txtMemo2.Text Do
    Begin
    txtMemo2.Text := txtMemo.Text
    txtMemo.Clear;
    If Not bFirst Then ADo('NextMessage');
    bFirst := False
    ADo('ArticlePane');
    ADo('SelectAll');
    Ado('Copy');
    txtMemo.PasteFromClipboard;
    WriteTxtFile;
    iCount := iCount + 1;
    End;
    ADo('FirstMessage');
    Finally
    UnlockDisplay;
    txtForm.Free
    End;
    Application.MessageBox(IntToStr(iCount) + ' messges exorted to ' + FileName, 'Export finished', 0);
    End.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mickey@21:1/5 to Michael Thompson on Wed May 8 17:34:33 2024
    Michael Thompson wrote:

    You just need to find the posted messages on the newsgroup to save them.

    The posts in my Sent folder go back much further than my news servers
    retention period. Need to archive posts going back to 2010. Suppose
    I could hunt them down individually by Message-ID on howardknight, but
    'twould be less time consuming to save them out of my Sent folder.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mickey@21:1/5 to Bernd Rose on Wed May 8 21:56:51 2024
    Bernd Rose wrote:

    You can try the following script. It should work with Sent.

    After a couple of false starts, got it to work..

    Thank you!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)