Luke A. Guest <[EMAIL PROTECTED]>:
> I had a problem the other day - I lost all of my settings for MD-II:
>
> All of my mail groups.
> All of my news groups - easy to put back.
> All of my filters.
> Everything!
>
> All that is left is my DATA directory - I backed it up, but I cannot
> get my mails back!
>
> How can I do it?
Oh man, you have my pity! Happened to me a few months back. Slightly annoying
ain't it? In hindsight, when you first noticed that you'd lost it, you should
have salvaged MicroDot.prefs.bak.
Anyway - Damage limitation. The best you can hope for now, is to salvage the
messages.
Each message will be stored as a text file in the data directory, so what you'll
have to do is import each message as if it was a new message. Before you start
the salvage operation, you way want to arrange the files in a more convenient
order eg copy them out of their individual directories into one directory.
Using the AmigaDOS *list lformat* command should do the trick.
Next you'll need to set up an rexx script. I have attached a copy to the
end of this message. If it doesn't already exist, make a directory called
*Rexx* in the MD-2 program drawer. Put the rexx script in it, remembering to
call it *MailImport.mdrx*
You will have to make sure you have *rexxreqtools.library.* If not, it's on
Aminet. You should now have an extra menu called *ARexx* and the new script
should on it. What this script should do, is allow you to import a message
into the MD-2 database.
Now run the rexx script. A file requester will appear. Select the files to
import. If all has gone according to plan, the messages will appear as new
messages in the PRIV folder.
However, they will not retain the same date as the messages were originally
received. If you want these maintained, the system clock will have to to
changed for each message, thereby increasing the time taken to do this job
tenfold. Unless you can be creative at the initial *list lformat* stage.
Phew! Hope you get it sorted with that. Now don't do it again! ;-)
--
Ta
Wayne
----------------------------------------------------------------------------------
www.free4all.co.uk
-- Attached file included as plaintext by Listar --
-- File: MailImport.mdrx
/* $VER: MailImport.mdrx 3.0 (02 AUG 97)
** by Charles Patterson <[EMAIL PROTECTED]>
** http://www.azstarnet.com/~midian/
**
** Description: Imports mail into Microdot-II from requester
**
** Requires: Microdot-II v0.198 (� 1997 by Oliver Wagner)
** rexxreqtools.library 1.3 (� 1992-94 Rafael D'Halleweyn)
**
** Instructions: Place in Microdot-II/Rexx path
** Adjust 'defpath' for your computer
** Run from Microdot-II ARexx menu
**
** --- Default path to import from: --- */
defpath = "Netconnect2:Microdot-II/"
OPTIONS RESULTS
IF ~SHOW('L','rexxreqtools.library') THEN
ADDLIB('rexxreqtools.library',0,-30,0)
filenames = RTFILEREQUEST(defpath,,'Select files','_Import','rtfi_flags =
freqf_multiselect|freqf_patgad rtfi_matchpat=~(.index)',files)
IF files THEN
DO n = 1 to files.count
MAILIMPORT files.n
END
EXIT
_____________________________________________________________
NetConnect mailing list. To unsubscribe, send an 'unsubcribe'
message to <[EMAIL PROTECTED]>