jberkel / sms-backup-plus

Backup Android SMS, MMS and call log to Gmail / Gcal / IMAP
https://play.google.com/store/apps/details?id=com.zegoggles.smssync
Apache License 2.0
1.8k stars 499 forks source link

IMAP search fails on non-Google servers #1074

Open Jimisa opened 2 years ago

Jimisa commented 2 years ago

Expected behaviour

Restore all backed up SMS from a 4.x Android to a new and empty 10 Android (LineageOS, /e/), using custom IMAP server.

Actual behaviour

When restoring, identification step passed, then stopped with a UID SEARCH 1:* (HEADER X-SMSSYNC-DATATYPE "SMS") UNDELETED; response: #4# [BAD,UID SEARCH bad parameters] message

Steps to reproduce the behaviour

  1. Save all SMS from the 4.x Android phone with custom IMAP configuration in the "SMS" folder (the save settings left as it is)
  2. Install the app on the new phone (/e/ OS on Fairphone 3)
  3. Configure IMAP settings
  4. Launch recovery

Please specify the following:

sms_backup_plus/.log is empty

Screenshot_20220224-162058_SMS_Backup+

kurahaupo commented 2 years ago

Have you set the IMAP "folder" (Gmail "label") to match the previous installation that you want to restore from?

If not, it's likely that there are no messages in the folder/label that's actually used, so that the range 1:* is invalid, because there's no message numbered "1".

kurahaupo commented 2 years ago

« Messaging app » <- celui-ci veut le nom du logiciel que vous utilizez pour lire les SMS

wvengen commented 9 months ago

I have a similar problem, where the server logs show: Error: FTS Xapian: Unknown header 'x-smssync-datatype'. Perhaps it would be useful to support iterating items without relying on this header being searchable.

kurahaupo commented 8 months ago

@wvengen I'll note that for a future update.