Mail regularly asks to rebuild the database

For the past couple months, a few times each week, Mail throws up a window saying that Mail has to quit and rebuild the mail list (or database.. I can't remember the exact wording). So I quit it and click the rebuild button and Mail rebuilds the 40,000 messages. This takes about 5 minutes each time.
Is there a way to either debug the existing emails, or just start over some how? I'd bet money that this isn't happening to everyone that uses Mail.

Hi all.
I have the same trouble, I did as Mulder says, it not helps.
Then I kill all the folder /Users/user1/Library/Mail and /Users/user/Library/Mail Downloads, after that I kill the files /var/spool/imap/user/user1/cyrus.* on mailserver, then restart mailserver, then in ServerAdmin utility in Mail/Maintenanse I find user1 and press button "Reconstruct". It rebuilds the cyrus.* files. Then I start Mail on user's1 computer, it wants me to create mail account, I do it.
Then it syncing all user's1 mail, and all is OK, BUT!!! All letters have the same receive data!!! (13.08.2008)
I think that the main mail DB corrupted, however is there any method to fix it?

Similar Messages

  • TS3276 how do i rebuild the database when starting up Mail version 5.2?

    Having real problems with Mail. Sent a large attachment earlier today which is now in a 'Recovered Message' folder. Since then I can't send or receive any emails from any account, ie BT Yahoo, via Mail, although I can do this from the internet at BT Yahoo. A friend suggested 'rebuilding the database' by holding down certain keys at launch of Mail. Will this work and if so what are the keys to hold down?
    Many thanks

    You can rebuild your mailbox by selecting the mailbox and then selecting the menu item "Mailbox >> Rebuild".
    You can optimize your mailbox by "vacuuming" the databases too (huge improvement). Open Termina.app and use:
    */usr/bin/sqlite3 ~/Library/Mail/Envelope\ Index vacuum*
    Personally, I do it with AppleScript:
    *tell application "System Events"*
    *set mailIsRunning to (name of processes) contains "Mail"*
    *end tell*
    *if mailIsRunning then tell application "Mail" to quit*
    *do shell script "/usr/bin/sqlite3 ~/Library/Mail/'Envelope Index' vacuum"*
    *if mailIsRunning then tell application "Mail" to activate*
    Message was edited by: J D McIninch

  • Iphoto won't quit, won't import photos, stalls while editing photos despite rebuilding the database

    I have mountain lion and the newest version of iphoto.   It won't quit unless I force quit it, it won't import photos, it won't let me edit photos without freezing up.   I have tried rebuilding the database and repairing permissions without success

    Try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists. If it freezes also try this:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    If the new library doesn't freeze or act like your current library then your current library is the culprit.
    In that case  Apply the two fixes below in order as needed: 
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Hello i would like to stop using outlook (office 2011) and use instead "mail": how can i transfer the database?

    hello i would like to stop using outlook (office 2011) and use instead "mail": how can i transfer the database?

    Hello Sylviefrombuenosaires, here is a link from macworld that can solve your question. Try reading this.
    http://www.macworld.com/article/158112/2011/02/export_outlook_ical.html
    Carlos

  • Remote Desktop Licensing Role - Rebuild the Database?

    My server is failing, so i want to rebuild the database. I have already installed the Remote Desktop Licensing Role. Should I rebuid from the Remote Desktop Licensing Manager or use the Add-RDLicense cmdlet?

    Hi Andrew,
    Thank you for posting in Windows Server Forum.
    It depends on your requirement, you can check the following link for useful information.
    RD Licensing Configuration on Windows Server 2012
    http://blogs.technet.com/b/askperf/archive/2013/09/20/rd-licensing-configuration-on-windows-server-2012.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • I have iphoto 5.0.4  My computer crashed while trying to quit iphoto and when I rebooted my albums and organized folders had all disapeared.  All my photos are still there but how do I retrieve my folders and albums?  I tried rebuilding the database

    My computer crashed while quiting iphoto.  When I rebooted my albums and folders had disappeared.  How do I get them back?  I tried rebuilding the database to no avail.  I am using iphoto 5...
    Thank you community!

    Most simple solution: restore from your back up.
    Other than that, try Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • I am running Microsoft Outlook for Mac 2011 and all my tasks on my imac are gone.  I can create new ones but cannot find my old ones.  I have tried to rebuild the database but I get an error message with [-18000] code

    I am using Microsoft Outlook for Mac 2011 and in the last two weeks all my tasks disappeared.  I have tried to establish a new identity but the database will not rebuild (error code [18000].  I have tried to restore a backup from time machine but get the same problem.  Any help would be appreciated

    Not very many Outlook users here. You'll to better asking in Microsoft's Office:Mac forums here:
    Office for Mac forums

  • Is there a way to rebuild the database(s) in ARD without re-installing?

    On my intel iMac (10.4.7) my lists will all go offline or "--" all at once... a restart of the app sometimes solves this for a while but eventually, I need to completely delete all of ARD and re-install to restore functionality. Id there a way to rebuild or replace the database(s) aARD uses for this stuff without a complete re-install (which, is not a trivial process)
    thanks.
    intel iMac   Mac OS X (10.4.7)  

    the app is not crashing with logs. It will become non-responsive frequently while scanning or while refreshing my all computer list. I originally, suspected the not so great DNS and st00pid number of subnets I have to scan to work but I have ARD 3 on my Xserve and the same install has been running issue free for months, on the same network.
    I have removed/re-installed ARD a few times on this box (and a dual G5 tower) with the same issue recurring... I just cannot figure out the trigger that makes it all go pear shaped.

  • Mail keeps asking to rebuild my mail boxes, but they don't rebuild and so it won't work

    when I open mail, I just get a dialogue box giving me the options of quiting or rebuilding the mailboxes. I have tried both options mltiple times, rebooted, an none of that works.

    You probably have a corruption in your Mail. Are you using Apple's iCloud mail or some other? Whatever it is, could you go to the web via your browser and check that everything is ok with your mail on the web. If it is, you will need to delete all your mail folders and start afresh. What OS version are you on?
    I had to laugh about the Spelling and Grammar part too ...

  • Is there any way to rebuild the database in iTunes?

    I've moved my iTunes Library to another hard drive for more space and now it has lost track of the location of many of the songs on the new drive.  I have set up the location of the drive in Preferences/Advanced, but it has no effect.  Is there any way to rebuild the entire iTunes database at the same time so it is not necessary to locate each of the songs individually?

    Hello there, MataPunk.
    The following Knowledge Base article has great guidelines for recreating an iTunes Library:
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/ht1451
    Thanks for reaching Apple Support Communities.
    Cheers,
    Pedro D.

  • I have a problem with iPhoto , i can't open it , is rebuilding the database since 4 days now and i don't know what to do... i have 50.000 photo in iPhoto and i can't see it anymore....what should i do?

    My iphoto crash few days ago and since few days my imac is try to rebuild the databese....now is 4 days and i'm warryes abouth all my pictures.
    what should i do?

    Try resetting the iPhone,
    Reset your iPhone by pressing the 'Sleep' and 'Home' button at the same time for about 15 seconds or so. Your iPhone will then go through a reset / reboot procedure and will be ready for use within about a minute.
    Don't worry about doing this as you will not lose data or settings.
    Good luck and do report back.

  • My iMac4 has depleted its disk space, a fter numerous rebuilds the database is still generating error messages My external HD is basically my storage for all data. Is it feasible to purchase Memory...?

    If this is a viable option how would I connect the memory in an effort to purchase additional disk space and upgrade to Lion? I currently use Snow Leopard as my OS but there are too many compatibility issues to consider. Thank you for your response. Cheers.

    You are confusing RAM (Random Access Memory) with data storage space on a hard drive.
    Cloud ( offsite server data storage) services to purchase remote data storage are NOT going to help you with this issue.
    You need to free up disk space on your Mac's internal hard drive.
    Here are some general tips to keep your Mac's hard drive trim and slim as possible
    You should never, EVER let a computer hard drive get completely full, EVER!
    With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
    If it does, it's time for some hard drive housecleaning.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your Mac's Trash icon in the Dock?
    If you use iPhoto or Aperture, both have its own trash that needs to be emptied, also.
    If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
    If you are an iMovie/ Final Cut user, both apps have their own individual Trash location that needs to be emptied, too!
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Look through your other Mailboxes and other Mail categories to see If there is other mail you can archive and/or delete.
    STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
    To find other large files, download an app called Omni Disk Sweeper.
    http://www.omnigroup.com/more
    Also, Find Any File
    http://apps.tempel.org/FindAnyFile/
    Download an app called OnyX for your version of OS X.
    http://www.titanium.free.fr/downloadonyx.php
    When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Moving iTunes library
    http://support.apple.com/kb/HT1449
    Moving iPhoto library
    http://support.apple.com/kb/PH2506
    Moving iMovie projects folder
    http://support.apple.com/kb/ph2289
    Things to consider before moving your iPhoto Library Folder to a new or external location like an external hard drive.
    If you make movies on any iDevices using iMovie for iOS,, then transfer the video footage, the IOS version of iMovie saves the footage as a movie file in IPhoto for IOS and will automatically get transferred to iPhoto for the Mac when you upload the video from your iDevice.
    Newer versions of iMovie will work and link those video files found in your iPhoto Library on your Mac, but those links can be lost if you move your iPhoto library and you will not be able to relink that video afterwards as the current versions of iMovie seem to not have a relink option for the video portion of the files (ironically, current versions of iMovie HAVE the ability to re-link the audio files from the video footage, though  (The inability to re-link the video files could be a possible bug or oversight in current versions iMovie).
    The lost video links show up as "blacked-out" video blocks with no content.
    Before moving the iPhoto Library
    If you make movies with iMovie using iPad or iPhone video then 'Consolidate' the files before you finish. This will gather (albeit by duplicating) all the relevant files in the project in one place. After consolidating/duplicating all of the audio and video footage to a seperate, independent location,it should be safe to move your iPhoto library.
    The potential way to circumvent this issues maybe to try and import  iPad and iPhoto video directly into iMovie which would be another solution.
    Good Luck!

  • I've got an iMac with database corruption found in the DB.. What happens if I rebuild the DB, an option the Database Utility is giving me? Will it wipe out my files or will they be protected?

    Hi all,
    I've been having issues with my iMac, particularly with the Office:Mac Suite.  I took it to the Genius Bar and they confirmed there was some corruption and decided the best thing would be to transfer all my files to the external hard drive I had brought with me.  After the transfer, they completely wiped all apps off the computer, then reloaded them.  They then reloaded my data from the external hard drive back to the computer hard drive. I reloaded the Office mac 2008 Suite when I got home.  Since then I have hooked up the external hard drive back to the computer (it's my time machine) and all is well, except, when I open any of the programs on the Office: Mac suite, I get the following message:
    There is a problem with the Office database
    Office might be unable to access the database or the database files might be damaged.  Without the database, you might beunable to use the Address Book, Scrapbook. and other features that store your personal information
    To rebuild the database, open Microsoft Office 2008/Office, and then open the Microsoft Databse Utility.  For more information, open the Database Utility application, and on the Help menu, click Database Utility Help.
    I did this and it gives me the option of rebuilding the DB but it gives no indication if there is danger of losing all my files.  Does anybody else know what will happen?  Is there another solution?  Should I simply reload the Office: Mac suite again?
    Help!
    Tami

    Copy your DB to the internal hard drive and then run the rebuilder.
    It might be the in the process of reinstalling Office the copy protection file was removed and thus you need to revalidate or something also.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • Rebuild Database did not reduce the database size

    I just completed a rebuild database. The rebuild completed much quicker than anticipated and in the end the did not reduce in size.
    This is my first rebuild and since original installation I have deleted a number of masters. From my understanding thumbnails and previews are not deleted when the master is deleted. In order to delete the thumbnails and previews the db must be rebuilt. Is this correct?
    The db is over 31.1gb. The rebuild took approx 10 minutes and when completed the db size was still 31.1gb. There was a message during the rebuild that read "Recovering projects". I was expecting to see stats showing previews and thumbnails being generated in the activity window but don't see it. Has the db been rebuilt?
    Thanks for any assistance.

    Rebuilding the database is for disaster-recovery, not file maintenance. I certainly wouldn't do it unless something was fundamentally broken and the application didn't run.
    "rebuilding" the database seems to do the following:
    (1) remove the database file completely (not even to the trash, it destroys the database utterly)
    (2) run through the plist files and reconstruct a brand-new database from them all
    I checked this (on an empty library) using hard-links from the commandline, and step (1) above scared me sufficiently that I'd only rebuild the database as an absolute last resort.
    Now, 31GB seems a lot for a database that only took 10 minutes to rebuild - are you sure you're not telling us the size of the library (to find the database size, right-click on the library and select view-package-contents, then open the 'Aperture.aplib' folder and find the size of the 'Library.apdb' file. That's the file you're changing when you 'rebuild database'.)
    If you're telling us the size of the entire aperture library instead, then that size will be completely dominated by the master RAW files you've imported. I'd guess your library will be less than 10MB.
    My understanding is that previews are deleted (since they're stored as separate files alongside the master image, if you look in the folder hierarchy), but thumbnails aren't. The thumbnails are aggregated together into one-file-per-project (presumably for speed of access), and I'd guess the space is reclaimed for future use, but the file doesn't get any smaller. That's a classic trade-off for speed-of-access, and users like us are normally very keen on things being fast
    -=C=-

  • IPhoto 9.5.1 has suddenly got all blank photos.  If I scroll through the photos they appear briefly.  I have not updated to Yosemite.  I have been through the database rebuild and repair routines.

    iPhoto 9.5.1 has suddenly got all blank photos.  If I scroll through the photos they appear briefly and disappear.  I have not updated to Yosemite - I am still running Mavericks on an iMac.  I have been through the database rebuild and repair routines.  I uploaded photos and movies three days ago and all was well.  Then I used the migration assistant to copy from Time Machine to a new Macbook Air and noticed blank photos.  I thought it was a problem with the Macbook Air, but then I went back to the iMac to check and they were all blank as well.

    what does appear after the photo "flashes"?
    Have you repaired permissions? If not backup your iPhoto library and option-command launch and repair permissions - then repair the database and if needed rebuild the database
    If that does not do it down iPhoto Library Manager on the iMac and use the free trial's rebuild command to create a totally new library leaving the existing one alone
    Once you have the iMac working correctly then connect the two systems together (or use an external drive formatted Mac OS extended (journaled) ) and drag the iPhoto library form the iMac to the pictures folder of the MBA (rather than migration assistant)
    LN

Maybe you are looking for