Hi,
on Tue, Nov 06, 2001 at 00:14:26 +0100, Ingo Heinicke wrote:
> > I already wrote the scripts to extract all messages of some type (i
> > this case all mails) from Microdot's message base back then when it
> > was corrupted the first time.
> > And maildrop will take care of sorting those into Maildirs.
>
>
> Gimme an info if anything's working!
As you can see from my User-Agent: header, I've actually done the switchover :)
Despite what I said above, I didn't use the old scripts I have on the Amiga.
As I had to do a last backup of Microdot's message base anyway before starting
to fiddle with it, I just packed the whole Data dir with Lha and ftp'ed it to
my router (which serves as my mail server).
There, I unpacked it into my homedir and then took the steps I "recorded" into
the following commented transcript:
--8<---
cd data/
# get rid of files not containing actual messages
rm -f *.ix *.IX Grouplist.* UIDL.history
# move all messages containing Newsgroups: headers away
# (this does include news forwarded by mail and mails forwarded by news!)
mkdir tmp
grep -rilZ '^Newsgroups:' dbx_* | xargs -r -0 -i{} mv {} tmp/
# get all forwarded messages by looking for Received: headers
mkdir dbx_tmp
grep -rilZ '^Received:' tmp/ | xargs -r -0 -i{} mv {} dbx_tmp/
# you should now manually check all files in dbx_tmp and delete any news
# messages containing forwarded mails, it shouldn't be that many
rm -rf tmp
# create a "domaildrop" script somewhere in your path:
# the following uses maildrop, you can of course also use procmail
#
# --8<---
# #! /bin/sh
#
# cat $1 | maildrop
# --8<---
# deliver your mails into the new folders - make sure your filters do
# work before doing this ;)
find dbx_* -type f -print0 | xargs -r -0 -i{} domaildrop {}
# finally start your MUA and manually set any mail flags (as all mails
# will be marked new and unread at this point)
--8<---
This went rather fine, the forwarded mails/news I had to take care of manually
as described where just about 10 (of 31000), the only gotcha in the process is
that your filter rules for the new mailer have to be set up correctly and include
rules for all old mailing list addresses (that you might have removed from Microdot
meanwhile).
In my case I had forgotten the old *.telesys-sc.fr addresses of the CGX mailing list
and so those ended up in my private folder - no big deal however to just select all
mails with this address in the To: header there and move them to the CGX folder :)
I haven't yet set the mail flags in all folders - I used 'Archive' to mark important
and interesting mails in Microdot and use the common (IMAP uses it too) 'flagged'
flag now.
This new setup should last longer than Microdot's, especially as its very open,
my incoming mail gets filtered into a standard Maildir with sub-folders.
Not only Mutt (this mailer) accesses it directly, but also a POP3 and an IMAP
server, so I can use any IMAP capable mailer and a local web-mail app (that
uses IMAP) to access my mails.
What remains to do is finishing my web-based LDAP address book and finding a
decent newsreader to replace that remaining part of Microdot. :)
elmar
--
3.1 // <[EMAIL PROTECTED]> ICQ: 13799187 Public PGP key available via pgp.net
// A4000T 68060-50 & 604e-233, 2+144MB, 12GB, SyJet 1.5GB, Cybervision64/3D,
\\// Member of Team *AMIGA* Crack RC5 now! Prelude, Ariadne, Eizo T57S 17"
__________________________________________________________________
MicroDot-II Mailing List - http://www.vapor.com/md2/
MicroDot-II FAQ: http://faq.vapor.com/md2/
Listserver Help: mailto:[EMAIL PROTECTED]?Subject=HELP
Unsubscribe....: mailto:[EMAIL PROTECTED]?Subject=UNSUBSCRIBE