icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Email » Recovering Mail - convert from maildir to Mbox? HOW??

Email General questions, webmail, mailing lists.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old October 22nd, 2007, 1:02 PM   #1 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
Recovering Mail - convert from maildir to Mbox? HOW??

Hey all

I have a bunch of mail that I did not think I would need, but now I do. it's been converted by the server (bleh!) to maildir format (bleh bleh).

It's all from a domain that I no longer own.

I need to convert it all back to MBOX files so I can download it and search through it for some information.

Anyone? Any help? I found a FEW links on the web, but not sure they would work here...:

http://yergler.net/Maildir_to_Mbox

Code:
and this script:
#!/bin/bash
for file in `find /Users/drfu/{current.mdir,new.mbox}/ -type f`
do
cat $file | formail >> mbox
done
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 23rd, 2007, 4:57 AM   #2 (permalink)
Registered User
Comfy Contributor
 
nathon's Avatar
 
Joined in Sep 2007
Lives in ~root
111 posts
Gave thanks: 1
Thanked 12 times
Why does it have to be in mbox format? If it is just the ease of searching through on file then just do the command

grep 'whatever you are searching for' /home/$username/mail/domain.com/username/*

This will search all of the emails for that one line
__________________
I'm proud to say I never have and never will use vista
nathon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 23rd, 2007, 1:40 PM   #3 (permalink)
minor deity
Super #1
 
Bigjohn's Avatar
 
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
Quote:
Originally Posted by nathon View Post
Why does it have to be in mbox format? If it is just the ease of searching through on file then just do the command

grep 'whatever you are searching for' /home/$username/mail/domain.com/username/*

This will search all of the emails for that one line
Want to have it on my windows PC, number one... Number 2, tried "searching" and it's not as easy as being able to search one big file and step from point to point to get the block of text that I need...\
__________________
Proud to be a Surmunity Mod!
XEON PASS60 PASS61
Make a fundamental difference!
My Sites:
Curious about Brewing Beer? Join the community!
>>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax
Get into an Art museum
Victorian London
It's your brain -ON WEB - mybrainhost.com (under development)
What SHOULD Government do? Much Less than it Does!
Bigjohn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On