Previous 1 2 Next 15 Replies Latest reply: Apr 19, 2012 4:22 PM by Linc Davis
rojorob Level 1 Level 1 (0 points)

OK, long time Mac user (original 128 Mac!).  Somehow, not sure what I did, the sent folder in my POP email got checked to delete after one day.  My sent folder has emails dating back to 2004.  So, when I got up this morning, I opened mail, looked for a previously sent email and realized that only the ones sent yesterday existed.  I need to restore.  Fortunately, I have a time machine backup.  However, when I go to Time Machine, find the correct SENT folder and try to restore, it tells me I do not have access to the file. I am not panicking ......... yet.

 

Anybody have any ideas?

 

Thanks in advance!


MacBook Pro, Mac OS X (10.7.3)
  • Linc Davis Level 10 Level 10 (155,685 points)

    Please post the complete, verbatim text of the error message exactly as you see it.

  • rojorob Level 1 Level 1 (0 points)

    1234.png
    Thanks!

  • Linc Davis Level 10 Level 10 (155,685 points)

    Are you trying to copy files from a TM backup folder in the Finder?

  • rojorob Level 1 Level 1 (0 points)

    Nope, I just held down the option key, went to library so that I could see the hidden mail folder.  At that point, I just selceted the Sent Messages.mbox within the correct POP account that I wanted to restore.

     

    Once the file was selected, I went to Time Machine so that it would go to the same place. I went back in time to last night when everything was there and hit Restore. 

     

    It started to copy and then stopped and came up with this message concerning the plist.

     

    At that point, I bailed out and started looking for help which lead me here.

     

    Thanks

  • Linc Davis Level 10 Level 10 (155,685 points)

    Bring the Mail browser window forward, then enter Time Machine. Scroll back in the time-travel view to the most recent snapshot taken before you deleted the messages you want to restore. Select the messages, then click Restore.

  • rojorob Level 1 Level 1 (0 points)

    25,893 emails.  It keeps locking up.  I have tried to do as few as a couple of months at a time.  Is there another way?

  • Linc Davis Level 10 Level 10 (155,685 points)

    You seem to have misconfigured file permissions in your home folder. That will be hard to fix, because they're misconfigured in your backups too.

     

    Launch the Terminal application in any of the following ways:

     

    Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

     

    In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

     

    Open LaunchPad. Click Utilities, then Terminal in the page that opens.

     

    Drag or copy — do not type — the following line into the Terminal window, then press return:

     

    tmutil listbackups

     

    The output will be a list of your available TM snapshots. Each line will be of the following form:
       
    /Volumes/volume-name/Backups.backupdb/host-name/year-month-day-second
       
    Here volume-name is the name of your backup volume, host-name is the name of your Mac, and the last part is the time the snapshot was taken. Locate the snapshot you want to restore from in the list. If you get that far, post again for more instructions.
  • rojorob Level 1 Level 1 (0 points)

    OK, located:

     

    /Volumes/Rob's backup/Backups.backupdb/Rob Glisson Laptop/2012-04-10-073218

     

    next?

     

    that was pretty easy, you can give me more.  Just so you know, I know how to use batchmod (you will probably tell me that is the problem!).  We have to use that all time to fix permissions for a program we use called ArchiOffice.

     

    Terminal - I don't use as much

     

    thanks

  • Linc Davis Level 10 Level 10 (155,685 points)

    Back in the Terminal window, enter the following text:

     

    dst="

     

    That's a quote at the end with no spaces. Don't press return yet. Now locate the folder you want to restore in the Finder. Make a copy of that folder and drag the copy to the Desktop. Drag the original folder (not the copy) into the Terminal window. More text will be entered automatically on the same line. Press delete once, then shift-", then return.

     

    Then enter the following line, press return, and post the output:

     

    echo $dst

     

    Now enter this (copy or drag, don't type):

     

    snapshot="/Volumes/Rob's backup/Backups.backupdb/Rob Glisson Laptop/2012-04-10-073218"
    

      

    Press return. Now this:

     

    src="${snapshot}/*/$dst/"

     

    Press return. Now this:

     

    echo $src

     

    Press return. Post the output of the last command.

  • rojorob Level 1 Level 1 (0 points)

    Then enter the following line, press return, and post the output:

     

     

    echo $dst

    /Users/rojostation8/Library/Mail/Mail\ Lost+Found/POP-rob@rojoarchitecture.com@mail.rojoarchitecture.com/Sent\ Messages.mbox_

    Rob-Glisson-Laptop:~ rojostation8$


     

     

    Press return. Now this:

     

     

    echo $src

     

     

    Press return. Post the output of the last command.


     

    /*//Users/rojostation8/Library/Mail/Mail\ Lost+Found/POP-rob@rojoarchitecture.com@mail.rojoarchitecture.com/Sent\ Messages.mbox_/

    Rob-Glisson-Laptop:~ rojostation8$

  • rojorob Level 1 Level 1 (0 points)

    forgot!

     

    Thanks and I await your next command!

  • Linc Davis Level 10 Level 10 (155,685 points)

    That output isn't correct. I don't think I can talk you through such a complex operation.

     

    Although I don't like to give this kind of advice, what you'll have to do is enable root logins, log in as root, and do the restore. Then log out of the root account and disable it. Finally, repair the permissions of your home folder as directed below.

     

    Enabling and using the "root" user in Mac OS X

     

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.

     

    Launch the Terminal application in any of the following ways:

     

    Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

     

    In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

     

    Open LaunchPad. Click Utilities, then Terminal in the page that opens.

     

    Drag or copy — do not type — the following line into the Terminal window, then press return:

     

    chmod -R -N ~

     

    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:

     

    sudo !!

     

    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.

     

    Next, boot from your recovery partition by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.

     

    When the recovery desktop appears, select Utilities ▹ Terminal from the menu bar.

     

    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens. You’re not going to reset the password.

     

    Select your boot volume if not already selected.

     

    Select your username from the menu labeled Select the user account if not already selected.

     

    Under Reset Home Directory Permissions and ACLs, click the Reset button.

     

    Select ▹ Restart from the menu bar.

  • rojorob Level 1 Level 1 (0 points)

    OK, I'll try tonight and post the results tomorrow morning, thanks

  • rojorob Level 1 Level 1 (0 points)

    OK, I have finally retreived all 25, 893 emails back into my Sent folder!!!!!  I followed you instructions above.  However, when in Root mode, I was unable to see the Library/Mail folders.  With a little searching I discovered how to use Terminal to unhide all hidden files. 

     

    Once I did that, I was able to replace the Sent Folder from Time Machine.  I still had a little difficulty once I got back into my normal account but eventually got the Rebuild to fix the folder. 

     

    So, Thanks for the help!

     

    But now, I have another issue related to the email that you may be able to help with.  I have 2 similar folders for the POP account (and in particular) the SENT folder.  See attachment.  It appears to me, the one under the V2 is the correct one.  Can I trash the other.  The sent folders for each are near 6.8 GB.  Would love to delete one if not needed.

     

    Mail Stuff.png

     

    Again, thanks for the help.  I had all kinds of issues.  Photoshop Elements had to be re-installed, Aperture had to re-enter serial number, and now Pages is not recognizing our standard office font!  I have attached an image if you have any ideas.

     

    Font Issue.png

Previous 1 2 Next