On 23/7/03 2:10 pm, "Patrick Marquetecken" <[EMAIL PROTECTED]>
wrote:
>
>>> I need to restore about 5000 e-mail that are in maildir format. This is
>>> structure of subfolders in subfolders in sub.... and all the mails have the
>>> extention .msg
... 
> I got a .tar file witch have all those mails. It comes from a SUN iplanet
> mailserver.

Surely, if these are valid maildirs, then almost any mail client will be
able to read them.

I'm not sure that they are, tho'. I have to add that I'm not *terribly*
experienced in these matters, but I know this is a valid maildir
subdirectory:

[EMAIL PROTECTED] stroller $ ls .Maildir/cur/
1047130623.M552061P10198V0000000000000304I00004AAD_8.gentoo.lan,S=5584:2,RS
1055258404.M3246P1737V0000000000000304I000066E2_0.gentoo.lan,S=2035:2,S
1055380174.M420753P13578V0000000000000304I0000171C_0.gentoo.lan,S=3293:2,S
1055578507.M339722P4396V0000000000000304I00005D9A_0.gentoo.lan,S=3709:2,RS
1056730207.M880669P23113V0000000000000304I000283D1_0.gentoo.lan,S=3659:2,RS
1056878409.M521657P2922V0000000000000304I0000D205_0.gentoo.lan,S=1569:2,S
1056878708.M865992P2932V0000000000000304I0000D20D_0.gentoo.lan,S=4517:2,S
1057616470.M874937P2205V0000000000000304I0000DE42_0.gentoo.lan,S=6009:2,RS
1057621227.M222504P2815V0000000000000304I0002B588_0.gentoo.lan,S=3014:2,S
1057677003.M693224P5133V0000000000000304I0002B628_0.gentoo.lan,S=4129:2,S
1058310308.M134905P11728V0000000000000304I0002BF91_0.gentoo.lan,S=5334:2,S
1058332803.M412347P12671V0000000000000304I0002BFE7_0.gentoo.lan,S=2701:2,RS
1058383228.M955402P14892V0000000000000304I0002C0C3_0.gentoo.lan,S=2617:2,RS
1058553014.M748851P30075V0000000000000304I0002C26C_0.gentoo.lan,S=5688:2,S
1058915724.M154155P17399V0000000000000304I0002C6F4_0.gentoo.lan,S=1705:2,S
[EMAIL PROTECTED] stroller $

This is a listing of my home directory on my courier-imap server.

>>> Does anyone knows what the best way to make them visible in a e-mail program
>>> with imap capacity so i can put them on a imap mailserver.
>> 
>> I can't wait until you post the full explanation of this. IMAP is brilliant!
> 
> I'm trying to get these mail into a local mailbox, and from there move them to
> a IMAP server.

Well, surely you could untar them to the server directly..?

The directory format for courier-imap is:
  $ ls -a1 .Maildir/
  .
  ..
  .Folder
  .Folder.Subfolder
  .AnotherFolder.
  .AnotherFolder.Subfolder
  courierimapsubscribed
  courierimapuiddb
  cur
  new
  tmp

  $ ls -a1 .Maildir/.Folder
  courierimapuiddb  cur  maildirfolder  new  tmp

NB: the ".Maildir" is set in courier-imap config files, and can be changed;
it should be the same for all users.

Names of folders & subfolders are arbitrary, but are saved as hidden files,
ie with the dot at the start of their names.

Separate directories exist for a folder & it's subfolders - the directories
which are IMAP subfolders are indicated hierarchically by the dot in the
middle of their names.

Each directory contains the special directories cur, new & tmp. Read mail is
stored in cur.

Maildirs should be made on the server using the `maildirmake` command, and
their subfolders using `maildirmake -f`. The man pages give the deatails.

It shouldn't be too hard to
 `mv folder/subfolder/* .Maildir/.folder.subfolder/cur/`
for each of the folders you have in your tar file. But please do this
carefully for a test-user first - I really am not sure about your .msg
extensions.

Stroller.

-- 
Enjoyed this post? Thanks for reading - please consider employing me!
Technical support / system administration - CV available on request
Linux / Unix / Windows / Mac OS X  - UK or anywhere considered



--
[EMAIL PROTECTED] mailing list

Reply via email to