Thread: eml2mbox.sh
View Single Post
Old 11 Apr 2003, 01:31 AM   #1
Guest
 
Posts: n/a
eml2mbox.sh

Howdy mbox lovers!

After a relatively brief argument/discussion with Rob I decided to write an eml to mbox conversion utility in shell, as some kind of expression of my masochistic tendencies; and because Rob wouldn't do it (as part of the Fastmail system)---although he has been extremely helpful in assisting me with ideas and code. Not least of which is his suggestion of doing this Perl, which probably would be about a third as many lines of code or less!

As I have only just written this over the last few days it hasn't been tested extensively and could easily do with a few speedups---at the expense of clarity perhaps. Yet for it's immaturity, it is pretty functional and robust. It is not RFC-822 perfect in at least in one respect, but one of my MTAs is reasonably happy with the result.

Apart from it not being perfectly RFC-822 groovy, it is a little slow as it will only process about 4-5MB per minute on my PIII/667.

Suggestions welcome.


thoran

P.S. One might normally find me as ID thoran, but I can't remember my password.

P.P.S. Expect a perl version some time in the next few weeks. In the meantime you'll just have to wait an extra minute or two per folder/mailbox conversion.

P.P.P.S. I didn't realise that there was a Ruby version until just now. I saw the more recent discussion, but not the one from a couple of months ago until I just a did a search for the more recent one. I might have used the Ruby one otherwise. Oh well, here's a more ubiquitous one anyhow.

P.P.P.P.S. The script follows because otherwise this message is too long.
  Reply With Quote