1

I have a Samsung Smartphone with a POP3 Mail Account on Samsung Standard Mail App. I need the Emails I've sent with this account in my new Exchange Account on another device? I think I may be able to transfer them if I find where they are stored on my phone.

Any ideas?

1

Maybe you can just move messages from POP3 Profile to IMAP Profile from your favorite email app.

If not, emails are stored in /data/data/com.android.email/databases/EmailProviderBody.db .

The non-rooting method

  1. You can get these files with adb when usb-debugging is enabled in developer settings, then run from cmd.exe:

    adb backup com.android.email
    
  2. Convert backup.ab with android-backup-extractor after java is installed:

    java.exe -jar abe.jar unpack backup.ab backup.tar
    
  3. Extract EmailProviderBody.db from backup.tar with 7-zip.

  4. Convert emails to *.eml with AndroidEmailExtractor after Groovy is installed.

  5. Import the *.eml files in outlook express, move the messages to imap Sent folder, sync imap with new device.

The root method: (If POP3 on your new device is ok for you)

  1. View the ownership and file permissions from adb shell (new device)

    adb shell
    su
    ls -lnZ /data/data/com.android.email/databases
    
  1. Copy all EmailProvider.db* EmailProviderBody.db* to the new device (or folder database) from cmd

    exit
    exit
    adb push C:\Android\Backup\email\databases /data/data/com.android.email/
    
  1. Restore ownership and file permissions from adb shell, where 100xx is the uid from above

    adb shell
    su
    chown -hR 100xx.100xx /data/data/com.android.email/databases
    chmod 0660 /data/data/com.android.email/databases/*
    chcon -hR u:object_r:app_data_file:s0 /data/data/com.android.email/databases
    
  2. Reboot the device. Old emails should be restored to the new device.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.