[pmmail-list] Message archiving <#@$%>

J Seder pmmail-list@blueprintsoftwareworks.com
Fri, 20 Jul 2001 11:03:07 -0700 (PDT)


--_=_=_=IMA.BOUNDARY.GGS1T7138764=_=_=_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

I use the attached Rexx procedure to store my messages into zip
archives.  For example, it lets me save all the messages to or from
Janice into "janice.msg" inside "letters.zip".  Individual messages are
set apart with "separator.dat".  This means that my message archives
are not only mail program independent but also platform independent. 
They are highly compressed.  I can use the zip archive utilities to
search and manipulate these files.  Their integrity can be tested. 
Thousands of messages conveniently become a hundred members of a
half-dozen zipfiles.

I run this as a manual filter.  To archive, I select one or more
messages, click the right mouse button, select "Archive", and then type
"letters janice" in the new command window.  If I'm creating a new
member, I get a warning.  If I type "letters janice e[dit]" then I'll
have a chance to edit the cumulative message file before it is saved
away.  (I periodically use Kedit macros to remove attachments and
spurious header data.)  If I have selected multiple messages, I will be
prompted for the zipfile/member for each message - but if I save my
selection in the clipboard, I can paste it into the window by clicking
both mouse buttons.

"unzip -p letters janice.* > delete.me", quickly extracts all my
correspondence with Janice into an easily browsed file.

To install this:
    Save pmmzip.cmd and separator.dat in your pmmail program directory.
    Edit pmmzip.cmd to assert the target path for your zipfiles.
    Create a new filter.
         Description=Archive
         Enabled=(No)
         Type=Manual.
    First action:
         "User hook (foreground)"
         Parameter="c:\pmmail\pmmzip.cmd"
    Second action
         "Delete message"
          parameter="Local copy"

I hope this is helpful.  No warranties expressed or implied.  YMMV.

- pmmail-list - The PMMail Dicussion List ---------------------------
To UNSUBSCRIBE, send a message to mdaemon@bmtmicro.com with the first 
line of the message body being...
UNSUBSCRIBE pmmail-list@blueprintsoftwareworks.com

--_=_=_=IMA.BOUNDARY.GGS1T7138764=_=_=_
Content-Type: application/octet-stream; name="separator.dat"
Content-Transfer-Encoding: base64

DQotKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSst
Ky0r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