Want to rebuild mailbox from client cache...how?

My System:
Xserve G5, 5GB RAM, 2 x 2Ghz Dual core xeons, Mac Os x Server 10.5.1 (build 9B18).
The Issue:
One of my users reported that he can't log in, For no apparent reason, the directory administrator was denied access to change the password, SO I deleted the user, re-created the same user with the same secondary mail partition (i am using a separate drive for the mail store location, the mail db as well as a secondary partition) All mail is stored on the secondary partition (/Volumes/mail/secondarypartition).
Now when the re-created user logged in, he couldn't see any of his previous mail. His mail store location was also wiped clean. He does have a cache on the lab machine. I have to reconstruct his old mailbox from his local cache on the lab machine... could any one guide me as to how I go about this?

I have a crude but effective solution after poking around at the contents of the mail cache. First of all make a backup of the IMAP folder (~/Library/Mail/IMAP-user@domain).
Then (with Mail off, although I don't think it makes any difference),copy the entire IMAP cache folder to the ~/Library/Mail/Mailboxes folder which is the local mailbox store.
Then you need to rename all of the imapmbox folder to become plain old mbox folders. Pick your method as you see fit. I just did a:
find . | grep imapmbox$ > fixnames.sh
And then a couple of cleanup routines to produce the rename commands.
Once you have that, you can start Mail up and you'll see a new local folder containing your old IMAP hierarchy. But we're not there yet. You now need to go folder by folder and choose Mailbox > Rebuild on each one.
I did poke around in the Applescript dictionary but it would appear that's not a command exposed to the Applescript API (which is too bad since I have a lot of folders here...).
The last step would be copying all of that back up to the IMAP server.
Best of luck!

Similar Messages

  • How do I restore playlist folders from iPod classic to iTunes? The library is intact, but the playlists are not and I don't want to rebuild them from scratch!

    After reformatting my HD and reimporting all songs back into iTunes succesfully, the playlist folders are gone and I don't want to rebuild them from scratch. How do I restore playlists from iPod classic to iTunes 11.1.3 without resorting to 3rd party options?

    I actually tried that in "my computer" by renaming the drive and then got this:
    g-raid (F:) (H:)
    then after reading your reply realized I should try renaming it in "disk management" and hey! it worked.
    Thanks a lot for the advice.
    Now I don't understand why my back-up drive isn't automatically adding the files when I import into the Ex-HD but I'll figuree it out.

  • I am getting an error message while managing my cloud it says "cannot turn off backup" when i want to remove apps from the clous. how do i fix?

    i am getting an error message while managing my cloud it says "cannot turn off backup" when i want to remove apps from the clous. how do i fix?

    Hey ktillis88,
    Thanks for the question. Based on the information you have provided, the following resource may be helpful:
    iCloud: Understanding Backup alert messages
    http://support.apple.com/kb/TS4576
    "Backups for appname cannot be turned off at this time."
    This message occurs if disabling Backup for an app on your iOS device does not complete successfully. Wait a few minutes and then attempt to disable Backup for the app again. If you continue to receive this alert, contact iCloud Support for assistance.
    Thanks,
    Matt M.

  • We want to extract mailboxes from exchange bkf file?

    We want to extract mailboxes from exchange bkf file? It there any manual method to get back mailboxes from bkf? Please suggest. It's urgent!
    Don't recommend me any third party software, please!

    Hi , 
    Then you could use the recovery storage group feature in exchange 2007 to extract the items from the restored backup for the selected mailboxes .
    Rererence link : http://www.msexchange.org/articles-tutorials/exchange-server-2007/high-availability-recovery/Working-Recovery-Storage-Groups-Exchange-2007.html
    Thanks & Regards S.Nithyanandham

  • I want to remove facebook from mountain lion ,how

    I want to remove facebook from mountain ,how

    yjchua95 wrote:
    I think what this chap wants is to remove the DP version of Facebook Integration. I also have Facebook Integration installed (it's a DP4 version). I would also want to know how on earth do I remove it, because there's no uninstaller package for it.
    You'll likely need to read up on forums hosted by the developer which provided your preview copy of OSX.  There are very few here using DP versions of OSX.
    You may need to wait until FB integration is officially released.

  • Removing icons/gifs from client cache

    I created icons for my web forms 9i in gif format. They are showing up nicely. However, when i changed the gif files with newer version of the icons, the old ones are still showing up. I have no copies of the old gifs anywhere on the app server, and have tried viewing the application on multiple clients and have erased temp. internet files and deleted all cookies. However, the old icons are STILL showing up. Any ideas?
    Thanks!
    Steve

    hi steve,
    sorry i m not here to give u solution but i need help from u.
    i think u are able to display the icons at runtime using forms 9ids,
    actually from few days i m trying to dislpay icons at run time but with out any success.
    i had made a simple push button and in its properties i had made the following changes
    iconic=yes
    icon filename=c:\temp\save
    the file save.GIF is saved under c:\temp directory.
    i had tried all the changes in registry.dat,orion file
    through the doc 203846.1 from metalink.
    can u give me sample code step to step for showing a
    pushbutton with icon during run time.
    i want step by step procedure and not the suggested changes.
    it would be nice if u can help on this
    my id is : [email protected]
    thanks,
    Kumar

  • HT4236 If i accidently transferred several thousand pictures to my iphone  and i want to remove them from my phone how do i get them off the phone. I an check them but i can't find a trash button to make them leave.. Help please.

    I was using help from apple to correct a software  problem which they were able to fix but somehow i got thousands of pictures moved from my macbook pro over onto my phone. I am not able to delete them from my phone as i can only see edit but i can't find  an option of delete or trash to use to get rid of them. For some reason there are pictures there that are not even mine that i desperately would like to get off my phone but can't figure out how to delete when they are in albums and  large quantities. I know how to delete when they are on camera roll as the trash can appears at the bottom of the picture.   Please help me so i don't have to go back for support tomorrow on the phone. I was on for hours today. . .but they did fix my original issue.. i just can't figure this one out.

    In the device sync pages select Photos on the top at the right.
    Un tick Sync Photos
    Apply

  • I DO NOT WANT TO UP DATE FROM 12. HOW CAN I GET YOU FROM UPDATING MY BROWSER. I AM ABOUT TO DELETE FIREFOX AND GO BACK TO EXPLORER

    I DON'T KNOW HOW TO MAKE IT PLAINER. IN THE FIREFOX I HAVE NOW I HAVE SPELL CHECK. IN THE NEW FIREFOX I DON'T, I HAVE IMPOSSIBLE TO LOAD AND USE 'DICTIONARIES,' WITHOUT SPELL CHECK THAT TAKE FORFUCKINGEVER TO USE. I DO NOT WANT THE NEWER VERSION. IF YOU DON'T STOP AUTOMATICALLY UPDATING MY BROWSER I'M GOING BACK TO EXPLORER.

    Are you running Firefox 24 now? Firefox 12 is not supported, has dozens of known security holes, and is lacking modern technology found in newer browsers.

  • I have partition my Mac and install window I now want to remove window from my Mac how do I do it. Also when I turn on the computer it's opening in window. How do I open in Mac window?

    I have partition my Mac and now I don't know how to get back, when I turn on the computer it open in window

    Hold down the alt key immediately after power-up, select which OS you want to boot, holding ctrl when you select an OS makes it the default.

  • I want to buy product from lenovo aud, how to buy?

    I am from viet nam.
    i want to buy and ship to viet nam.
    Please help me?

    Yes, me too.
    I'm looking to buy the UHD Y50 and have it ship to Vietnam. Is this possible ? 
    I notice this topic has been for 6 months old and no one is replying. Can anyone answer this ?

  • HT201401 i want to transfer data from my computer how do i do it

    how do i transfer pictures and music from my computer to my iphone

    http://apcmag.com/the-ultimate-iphone-user-guide-how-to-sync-and-transfer-media. htm
    otherwise it's also covered in the iphone manual
    http://support.apple.com/manuals/

  • HT204053 I tried to buy some thing from APP.  But it always show someone else apple ID.  there fore I can not use my passward.  And I can not use my Apple ID when I want to buy something from App.  How can I fix it?

    I tried to use my iphone to buy app.  But it always showed difference apple ID.  Not my apple.  Therefore I can not buy app.  I dont know how to fix it.

    What id shows at the bottom of the Featured tab in the App Store app on your phone ? If it's not your id then tap on it and log out of it and you can then log in with your id.
    If you have any apps or other content from the id that is currently showing then that content will be tied to that id e.g. only that account will be able to download updates to its apps and make in-app purchases in those apps

  • Don't want to download email from server. How?

    Just upgrade from my Droid1 to a new Droid RAZR.
    On my Droid1, when I checked my eemail, the messages were not downloaded to the phone. They remained on the server. Then, when I checked email from my PC, any messages that were in my Droid's inbox would automatically be removed (as they were downloaded to my PC). If I deleted a mail message from my Droid's inbox, the message would still be downloaded to my PC when I checked its email.
    I want to configure the email on my new RAZR the same way, but I'm having problems. After downloading the email to my PC, the messages remain in my RAZR's inbox. I have to manually delete them   What am I doing wrong?
    My RAZR's email configuration is:
    Incoming server
    POP mail server
    Server, username, and password (all are correct)
    Port: 110
    My old Droid1 had a "Delete email from server: When I delete from Inbox" setting.
    Outgoing server
    SMTP server
    Server, username, and password
    Port: 26
    Authentication: LOGIN
    My old Droid1 had a "Require sign-in" setting
    Other settings
    Never delete messages
    Remove manually deleted emails from the server (enabled)
    My old Droid1 did not have this "Other settings" section.
    Thanks!
    -R

    i agree up to #5.
    if i get a pop3 email on the phone & don't delete it but look at the same email on my pc, deleting the email on the pc does not delete it from the phone inbox & must be deleted manually.
    as i don't leave a copy of the email on the server using outlook express on the home pc, if i get email on the pc 1st, it won't go to the phone.
    i don't delete from the server on the phone, so if i delete the email in the phone inbox, it still goes to the pc.
    oh, btw, i do a manual fetch on the phone.
    gmail does what you ask, email in the inbox is deleted when deleted from the gmail account on a pc.

  • I want to import bookmarks from AOL. How can I do this?

    I read some suggestions in the support area but none help. AOL is discontinuing their favorite places on their new site and I desperately need to find another browser to export them to. I like Firefox but cannot figure out how to do this. PLEASE HELP!

    Import and Backup is the third (last) button on the toolbar in the Bookmarks Manager (Library) that looks like a star.<br />
    Other platforms show the text label, but on Mac you only see toolbar icons.

  • How can i load file into database from client-side to server-side

    i want to upload file from client-side to server-side, i use the following code to load blob into database.
    if the file is in the server-side, it can work, but if it in the client-side, it said that the system cannot find the file. i think it only will search the file is in the server-side or not, it will not search the client-side.
    how can i solve it without upload the file to the server first, then load it into database??
    try
    ResultSet rset = null;
    PreparedStatement pstmt =
    conn.prepareStatement ("insert into docs values (? , EMPTY_BLOB())");
    pstmt.setInt (1, docId);
    pstmt.execute ();
    // Open the destination blob:
    pstmt.setInt (1, docId);
    rset = pstmt.executeQuery (
    "SELECT content FROM docs WHERE id = ? FOR UPDATE");
    BLOB dest_lob = null;
    if (rset.next()) {
    dest_lob = ((OracleResultSet)rset).getBLOB (1);
    // Declare a file handler for the input file
    File binaryFile = new File (fileName);
    FileInputStream istream = new FileInputStream (binaryFile);
    // Create an OutputStram object to write the BLOB as a stream
    OutputStream ostream = dest_lob.getBinaryOutputStream();
    // Create a tempory buffer
    byte[] buffer = new byte[1024];
    int length = 0;
    // Use the read() method to read the file to the byte
    // array buffer, then use the write() method to write it to
    // the BLOB.
    while ((length = istream.read(buffer)) != -1)
    ostream.write(buffer, 0, length);
    pstmt.close();
    // Close all streams and file handles:
    istream.close();
    ostream.flush();
    ostream.close();
    //dest_lob.close();
    // Commit the transaction:
    conn.commit();
    conn.close();
    } catch (SQLException e) {

    Hi,
    Without some more details of the configuration, its difficult to know
    what's happening here. For example, what do you mean by client side
    and server side, and where are you running the upload Java application?
    If you always run the application on the database server system, but can't
    open the file on a different machine, then it sounds like a file protection
    problem that isn't really connected with the database at all. That is to
    say, if the new FileInputStream (binaryFile) statement fails, then its not
    really a database problem, but a file protection issue. On the other hand,
    I can't explain what's happening if you run the program on the same machine
    as the document file (client machine), but you can't write the data to the
    server, assuming the JDBC connection string is set correctly to connect to
    the appropriate database server.
    If you can provide some more information, we'll try to help.
    Simon
    null

Maybe you are looking for

  • Book layout question due to lack of functionality in InDesign

    I am a doctoral student (cancer cell biology) starting to write my dissertation (in Word 2007) and I'm using InDesign CS3 (5.0.4) for the layout (I refuse to layout figures and tables in Word... tried it... giant pain in the a$$).  My original plan w

  • Material type for both service and delivery

    Hai all,   I there is any material type for which both delivery and service can be carried for the same material. Thanks in advance, S.Jenibalet

  • One wake from sleep solved

    Time will tell if it is truly solved but I noted a comment about my screensaver /desktop path in a recent crash report when I had to hard reset after my machine would once again refuse to wake from sleep. After looking at my picture folder that was s

  • Changing name of streamlink radio show

    I am loving being able to stream link radio talk shows, and listen on my iPod. However, I have a problelm. The show comes into my computer titled Coast to Coast AM with the date and the hour. I rename it with what the show is about but when I move it

  • Konica Minolta printer driver on Lion

    I have Konica Minolta laser printer 2530DL and tried to install SL drivers - they ineed do install, but after sending some documents to print, nothing happens. Does anyone have any idea about possible update or any other possible solution? Tnx.