Search Posts

Gmail – forsvundne emails

DET ER FORKERT AT TRO AT ALLE INDKOMNE MAILS VISER SIG I "INDKOMNE MAILS" (INCOMING MAILS)

SE I STEDET UNDER "ALLE EMAILS" (ALL MAILS)

The first concern when messages are missing is that the account was compromised and contents deleted. The first step is to change your password and verify all your other security and account settings (see http://gmailaccountrecovery.blogspot.com/#security (When you reclaim Your Account)). If the account was compromised, a request for recovery of the deleted messages can be made here: http://mail.google.com/support/bin/answer.py?answer=78353

Other possibilities include:* Forwarding, filters, or access using POP/IMAP any of which could be deleting messages.* Messages can also be deleted from other web-sites/tools/utilities through Authorizing applications & sites.* Confusion on the difference between labels and folders when doing account cleanup.* Using a view other than "classic" in Settings->Inbox can sometimes result in messages being hidden.* In a Google Apps account it could a misconfigured retention policy: http://support.google.com/a/bin/answer.py?hl=en&answer=151128

Have you looked in the “All Mail”, “Trash”’ (or Bin, but not [imap]/Trash), and “Spam” labels for the missing information? Have you used the Search Mail function (with the term “in:anywhere”) to try and find them?

Unfortunately, messages permanently deleted (manually or due to the 30-day auto-delete) from Trash or Spam can not be recovered. Sorry.

Unexpected message loss is why some people do their own backups of their Gmail accounts. That way they can recover their information if something happens. http://gmail-tips.blogspot.com/2012/01/gmail-backup.html

For more information see:Try to find missing messages: http://mail.google.com/support/bin/answer.py?answer=8256Recovering deleted messages: http://mail.google.com/support/bin/answer.py?answer=78353Recovering messages or contacts: http://mail.google.com/support/bin/answer.py?answer=50208

nedenstående er fra siden her:
https://code.google.com/p/got-your-back/wiki/GettingStarted

LogoLogo
got-your-backGot Your Back: Gmail Backup

Project HomeDownloadsWikiIssuesSource

Search Search within: All wiki pages Featured pages Current pages My starred pages Deprecated pages for

external image star_off.gifGettingStartedDownloading, Installing and Using GYB
FeaturedUpdated May 3, 2013 by jay0lee

Comments have been turned off for these help pages, please post your questions and comments to the Mailing List
Introduction Got Your Back (GYB) is a command line tool that backs up and restores your Gmail account. This page provides simple instructions for downloading, installing and starting to use GYB.
GYB works with Gmail.com and Google Apps accounts.
Step 1: Download GYB

Windows Users

Head to the Downloads page and download the latest Windows version of GYB, do not download the Python Source version (unless you really know what you're doing).

Mac and Linux Users

Head to the Downloads page and download the latest Python source version of GYB, do not download the Windows version.
Step 2: Extract GYB

Windows Users

Use the archive extraction tool of your choice to extract the files from the GYB .zip you downloaded. Windows XP and higher have a built in tool that works just fine. When specifying where to extract GYB, I suggest extracting directly to C: so that the files will reside in C:gyb. Once completed, GYB should exist at C:gybgyb.exe

Mac and Linux Users

Use the archive extraction tool of your choice to extract the files from the GYB .zip you downloaded. I suggest extracting the files to a sub-folder of your home directory.
Step 3: Running GYB for the First Time

Windows Users

Open a command prompt on your computer. You can do this by going to Start -> Programs -> Accessories -> Command Prompt or by opening the Run… dialog on the start menu and typing CMD then enter. Now change to the directory where you extracted GAM. The command to change directories looks like:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">cd </span><span class="pun" style="color: #666600;"></span><span class="pln">gyb</span></span>this works if you extracted GYB to c:gyb. If you extracted it elsewhere, specify that location instead. Now type:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">gyb </span><span class="pun" style="color: #666600;">–</span><span class="pln">email youremail@gmail</span><span class="pun" style="color: #666600;">.</span><span class="pln">com </span><span class="pun" style="color: #666600;">–</span><span class="pln">action estimate</span></span>except use your real email address in place of youremail@gmail.com. GYB will open up a web page in order for you to grant access to your Gmail account. This authorization makes it possible for GYB to connect to your Google Account via IMAP and SMTP only, GYB will have no rights to any of your other Google Data. Make sure you are logged in to the Google account you specified before granting access. Once you've granted access, switch back to the command prompt window and hit enter. If no errors are printed, GYB should start estimating the size of your Gmail mailbox. Note that GYB only estimates the size of messages in the All Mail folder, it does not check Spam or Trash although these do count against your Gmail quota displayed at the bottom of your Gmail inbox. To accurately compare GYB's estimate and the Gmail inbox web page quota display, first empty your Trash and Spam folders.
Congratulations, you're up and running with GYB! You probably want to move on to performing a backup now.

Mac and Linux Users

Open up a terminal window on your computer. On Linux, this is generally under Accessories -> Terminal. On Mac, it's under Applications -> Utilities -> Terminal. Now change to the directory where you extracted GYB. Try:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">cd </span><span class="pun" style="color: #666600;">~/</span><span class="pln">gyb</span></span>this will work if you extracted the GYB files to a subfolder named gyb in your home directory. If you extracted them elsewhere, replace ~/gyb with the full path to them. Now run:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">python gyb</span><span class="pun" style="color: #666600;">.</span><span class="pln">py </span><span class="pun" style="color: #666600;">–</span><span class="pln">email youremail@gmail</span><span class="pun" style="color: #666600;">.</span><span class="pln">com </span><span class="pun" style="color: #666600;">–</span><span class="pln">action estimate</span></span>If you get an error about python not being a valid program, make sure you have the Python interpreter installed on your machine. All Macs and most Linux installs should include Python but if not, you may need to research how to install it on your OS/Distribution.
GYB will open up a web page in order for you to grant GYB access to your Gmail account. This authorization makes it possible for GYB to connect to your Google Account via IMAP and SMTP only, GYB will have no rights to any of your other Google Data. Make sure you are logged in to the Google account you specified before granting access. Once you've granted access, switch back to the command prompt window and hit enter. If no errors are printed, GYB should start estimating the size of your Gmail mailbox. Note that GYB only estimates the size of messages in the All Mail folder, it does not check Spam or Trash although these do count against your Gmail quota displayed at the bottom of your Gmail inbox. To accurately compare GYB's estimate and the Gmail inbox web page quota display, first empty your Trash and Spam folders.
Instead of needing to type "python gyb.py" for every command, you can mark the gyb.py file as executable or we can use the alias command to shorten it to just "gyb":
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="kwd" style="color: #000088;">alias</span><span class="pln"> gyb</span><span class="pun" style="color: #666600;">=</span><span class="str" style="color: #008800;">"python gyb.py"</span></span>Now when we can just type commands like:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">gyb </span><span class="pun" style="color: #666600;">–</span><span class="pln">email myemail@gmail</span><span class="pun" style="color: #666600;">.</span><span class="pln">com </span><span class="pun" style="color: #666600;">–</span><span class="pln">action estimate</span></span>you'll need to type the alias command each time you open a Terminal to run GYB.
Congratulations, you're up and running with GYB! You probably want to move on to performing a backup now.
Step 4: Performing A Backup A basic GYB backup is very easy to start. Just run:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">gyb </span><span class="pun" style="color: #666600;">–</span><span class="pln">email youremail@gmail</span><span class="pun" style="color: #666600;">.</span><span class="pln">com </span><span class="pun" style="color: #666600;">–</span><span class="pln">action backup</span></span>the "–action backup" is not strictly necessary since GYB defaults to backing up if an action is not specified. Assuming you've already granted GYB access to your Gmail messages, GYB will load the access token from youremail@gmail.com.cfg and use it to get access to your messages. By default, GYB will download and save all messages to a folder named "GYB-GMail-Backup-youremail@gmail.com". You can specify another folder for GYB to use with the –local-folder argument:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">gyb </span><span class="pun" style="color: #666600;">–</span><span class="pln">email youremail@gmail</span><span class="pun" style="color: #666600;">.</span><span class="pln">com </span><span class="pun" style="color: #666600;">–</span><span class="kwd" style="color: #000088;">local</span><span class="pun" style="color: #666600;">-</span><span class="pln">folder </span><span class="str" style="color: #008800;">"C:UsersJohnDocumentsJohns_Gmail_Backup"</span></span>GYB will keep you update you as the backup progresses.
Step 5: Performing a Restore Restores on GYB are also very simple:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">gyb </span><span class="pun" style="color: #666600;">–</span><span class="pln">email youremail@gmail</span><span class="pun" style="color: #666600;">.</span><span class="pln">com </span><span class="pun" style="color: #666600;">–</span><span class="pln">action restore </span><span class="pun" style="color: #666600;">–</span><span class="kwd" style="color: #000088;">local</span><span class="pun" style="color: #666600;">-</span><span class="pln">folder </span><span class="str" style="color: #008800;">"c:my_gmail_backup"</span></span>the specified folder should exist and should have been used in a previous GYB backup. If not specified, restores default to using the GYB-GMail-Backup-youremail@gmail.com folder just like the backup does. GYB will connect to your Gmail account and perform the restore of all messages in the backup folder.
Note that if you perform a restore to the same Gmail account, GYB will not create duplicate messages, instead you'll only see messages restored which were backed up by GYB then later deleted from the Gmail account.
You can also use the "–label-restored NEWLABELNAME" argument to set a label on all restored messages. For example:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">gyb </span><span class="pun" style="color: #666600;">–</span><span class="pln">email youremail@gmail</span><span class="pun" style="color: #666600;">.</span><span class="pln">com </span><span class="pun" style="color: #666600;">–</span><span class="pln">action restore </span><span class="pun" style="color: #666600;">–</span><span class="pln">label</span><span class="pun" style="color: #666600;">-</span><span class="pln">restored </span><span class="str" style="color: #008800;">"Restored 05-09-11"</span></span>Selective Backups With Gmail Searching GYB supports selective backups using Gmail style mailbox searches. For example, suppose you wanted to only backup important or starred messages:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">gyb </span><span class="pun" style="color: #666600;">–</span><span class="pln">email youremail@gmail</span><span class="pun" style="color: #666600;">.</span><span class="pln">com </span><span class="pun" style="color: #666600;">–</span><span class="pln">search </span><span class="str" style="color: #008800;">"is:important OR is:starred"</span></span>would cause GYB to only backup messages matching that search query. Virtually any Gmail search will work with GYB. The only exception being that specifying "in:anywhere" will not backup Trash and Spam, there's currently no way to backup Trash and Spam with GYB. See here for a detailed article on all of the possible Gmail Search parameters.
Note that Gmail searches also work with the "–action estimate" command. Suppose you wanted to know how much space emails with .PDF attachments are using in your Gmail mailbox:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">gyb </span><span class="pun" style="color: #666600;">–</span><span class="pln">email youremail@gmail</span><span class="pun" style="color: #666600;">.</span><span class="pln">com </span><span class="pun" style="color: #666600;">–</span><span class="pln">action estimate </span><span class="pun" style="color: #666600;">–</span><span class="pln">search </span><span class="str" style="color: #008800;">"filename:PDF"</span></span>will estimate the size of messages with PDF attachments only. Try substituting DOC, JPG, ZIP and other common file attachments for PDF.
Advanced options

–noresume

GYB keeps a record of messages restored to each account and will pick up where it left off should the restore not finish. The –noresume switch will make GYB ignore messages already restored and restart the restore at the beginning.

–fast-incremental

By default, GYB will refresh the stored labels and flags for messages that have already been backed up, just in case they changed after the backup. This step can be skipped by supplying the -F or –fast-incremental switch on the command line.

–action reindex

GYB keeps track of the messages backed up by using the IMAP UID values for the messages. It does not happen often, but it is sometimes necessary to reorganize an IMAP mailbox and assign new UIDs. When this happens, GYB will refuse to use the existing folder for further backups. The –action reindex action will rebuild the UID index using information from the message headers. It is slow, but faster than re-downloading the full account to start a new backup.
(Another option is to make a new backup folder, but include a search for "after:" some recent date for that folder. If it is ever necessary to restore the mailbox, you would then need to restore from both folders.)

–action restore-group

Google Apps for Business and Education Only. This feature allows you to restore messages to a Google Group rather than a user mailbox. It's important to note that:

  • Message labels, read/unread status, stars and other metadata are not preserved with restore-group.
  • There is no API or method to extract or backup messages stored in Google Groups. GYB can restore messages to a group but cannot backup message in a group, it's a one-way process.
  • The Groups Migration API supports a maximum message size of 16mb so not all Gmail-stored messages can be imported into a group.
  • Groups have no quota! If you're okay with the above issues, you can offload an unlimited amount of data to a group. This may be a good solution for users approaching their 25gb quota in Gmail.

This option requires the –use-admin option below be specified. The –email option should be the Google Group to restore messages into. Archiving for the group should be enabled.
A good use case for restore-group would be a user who is nearing Gmail quota. You could do a selective backup of the user's mailbox with a GYB backup using –search before:2011/04/13 smaller:16M to get only messages older than 2 years and smaller than 16mb. Then restore the messages to a Google Group and give the user exclusive access to the new group. Finally, free up the user's mailbox by performing a purge using the same search parameters. I'd also recommend holding on to the local backup of the user's mail should you ever wish to restore to the mailbox.

–use-admin

Specify the Google Apps admin to utilize when restoring messages to a group with –action restore-group. This user should be a super administrator, delegated admins do not have sufficient privileges to perform group restores.

–action-count

Just count the number of messages in a user mailbox. Note, to compare this number to what you see in Gmail, you should turn conversation mode off in general settings and search for "-is:chat". This ensures you are counting individual messages (not conversations) and that archived chats which are not backed up by GYB by default are not counted.

–action purge

DANGEROUS!!! This option will completely delete messages. Running this command without a –search parameter will EMPTY YOUR ENTIRE MAILBOX. This removes messages from Trash and Spam folders also so there is no ability to restore from the mailbox itself. Use this option with extreme caution. You have been warned. It is highly recommended to do a backup before a purge.

–use-imap-folder

By default, GYB always connects to the "All Mail" IMAP folder in order to perform backups, estimates, restores and counts. However, with this option, you can specify another IMAP folder to utilize. This option is most useful in backing up Archived Chats by specifying –use-imap-folder [Gmail]/Chats. Make sure the Chats folder is visible to IMAP in your Gmail Settings -> Labels before running this. Note that chats cannot be restored to the Chats label in Gmail since the folder is read-only for IMAP.

–batch-size

By default, GYB grabs the full content of 100 messages at a time for backup. If the mailbox has lots of very small messages, you may see better backup performance by backing up more messages at once with a –batch-size 500 parameter. If the mailbox has many very large messages, it may take a very long time for GYB to backup anything as it could be pulling down up to 2500mb (100 messages x 25mb each) of data for each batch. Try specifying something smaller like –batch-size 4.

–service-account

Use a Google Service Account to authenticate rather than standard 3-legged OAuth authentication. This option is only for Google Apps for Business and Education users. See below for details.
Google Apps Business and Education Admins: Backup, Restore and Estimate Users and Restore to Groups If you're using Google Apps for Business or Education Edition, it's possible to use GYB with your users without needing to know their password. This works because GYB makes use of a special Google Apps feature called Service Accounts.
There are a few steps involved with creating and authorizing a service account for GYB.

  1. Go to the Google API Console
  2. Click "Create Project"
  3. In the list of "All Services", scroll down to "Groups Migration API" and click the switch to toggle it ON. Agree to the terms.
  4. Go to "API Access" menu to the left.
  5. Click "Create an OAuth 2.0 client ID…" big blue button.
  6. Enter a product name (other details are optional). Click Next.
  7. Select the "Service Account" radio button. Click "Create client ID"
  8. Click "Download private key". Save it to the same location as gyb.exe or gyb.py. Be sure to rename the file to privatekey.p12 (take off all the random characters).
  9. Make a note of the Client ID and Email Address Values. You'll need them later so either copy them into Notepad or keep the API console window open in another tab.
  10. Go to your Google Apps Control Panel.
  11. Navigate to Advanced Tools -> Manage third party OAuth Client access.
  12. For Client Name, enter the Client ID you recorded above. For API Scopes, enter exactly:https://mail.google.com/,https://www.googleapis.com/auth/apps.groups.migration
  13. Now you can run GYB with the service account option. Specify your service account email address from above when using –service-account.

Try running:
]]><span style="font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; font-size: 12px;"><span class="pln">gyb </span><span class="pun" style="color: #666600;">–</span><span class="pln">email yourusersemail@yourcompany</span><span class="pun" style="color: #666600;">.</span><span class="pln">com </span><span class="pun" style="color: #666600;">–</span><span class="pln">service</span><span class="pun" style="color: #666600;">-</span><span class="pln">account </span><span class="lit" style="color: #006666;">123456789@developer</span><span class="pun" style="color: #666600;">.</span><span class="pln">gserviceaccount</span><span class="pun" style="color: #666600;">.</span><span class="pln">com</span></span>WARNING: Service Accounts offer very powerful control over your Google Apps domain. Do not use this option on a computer you do not trust! Do not leave the privatekey.p12 file in places where others can find it! If you suspect your Service Account has been stolen, delete the API project in the API console and unauthorize it's access to your domain.

Tegn abonnement på

BioNyt Videnskabens Verden (www.bionyt.dk) er Danmarks ældste populærvidenskabelige tidsskrift for naturvidenskab. Det er det eneste blad af sin art i Danmark, som er helliget international forskning inden for livsvidenskaberne.

Bladet bringer aktuelle, spændende forskningsnyheder inden for biologi, medicin og andre naturvidenskabelige områder som f.eks. klimaændringer, nanoteknologi, partikelfysik, astronomi, seksualitet, biologiske våben, ecstasy, evolutionsbiologi, kloning, fedme, søvnforskning, muligheden for liv på mars, influenzaepidemier, livets opståen osv.

Artiklerne roses for at gøre vanskeligt stof forståeligt, uden at den videnskabelige holdbarhed tabes.

Leave a Reply