Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- convert mail to mozilla format
July 27, 2004, 10:33 am
rate this thread
remember how) with all the mails from each folder bundled in a single
mailmessage in Moz.
I know the little Perl needed to parse this big messages and split
them to single chunks, but then what? How can I save them as single
emails recognizable by Moz?
I saw that for a given Moz folder e.g. "Work" Mozilla keeps the files:
(and a directory Work.sbd if the folder contains subfolders)
the typical "Work" file too seems a big chunk, while Work.msf has the
header // <!-- <mdb:mork:z v="1.4"/> --> on it.
Any idea on how to proceed?
Re: convert mail to mozilla format
> remember how) with all the mails from each folder bundled in a single
> mailmessage in Moz.
That suggests the "From " header (no, not "From:") is missing from each
of the mail messages. Check this by looking at the first line of the
file - it should start with a line like this example:
From someone@somewhere Sun Dec 7 00:00:00 2004
In perl, that should match something like this RE:
/^From \S+ \w \w [ \d]\d \d\d:\d\d:\d\d \d$/
> I know the little Perl needed to parse this big messages and split
> them to single chunks, but then what? How can I save them as single
> emails recognizable by Moz?
I would have expected it to "just work". I use thunderbird here (an
offshoot from moz) and it keeps my messages in one file per folder.
> I saw that for a given Moz folder e.g. "Work" Mozilla keeps the files:
> (and a directory Work.sbd if the folder contains subfolders)
In this example, "Work" is the file containing all the messages for the
folder "Work". "Work.msf" is a set of lookup keys to "Work" and can be
safely deleted (moz will rebuild it automatically). "Work.sbd" is the
directory used to hold subfolders of "Work", if required.
- » Posting Guidelines for comp.lang.perl.misc ($Revision: 1.5 $)
- — Previous thread in » PERL Discussions