[GH-ISSUE #1074] IMAP search fails on non-Google servers #858

Open
opened 2026-02-26 01:32:07 +03:00 by kerem · 4 comments
Owner

Originally created by @Jimisa on GitHub (Feb 24, 2022).
Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/1074

Originally assigned to: @kurahaupo on GitHub.

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:

  • Android version : 10 (Lineage OS /e/)
  • Phone model / brand : Fairphone 3+
  • SMS Backup+ version installed : 1.5.11
  • Messaging app : (please specify the software that you usually use to read & send SMS & MMS messages)

sms_backup_plus/.log is empty

Screenshot_20220224-162058_SMS_Backup+

Originally created by @Jimisa on GitHub (Feb 24, 2022). Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/1074 Originally assigned to: @kurahaupo on GitHub. ### 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: * Android version : 10 (Lineage OS /e/) * Phone model / brand : Fairphone 3+ * SMS Backup+ version installed : 1.5.11 * Messaging app : _(please specify the software that you usually use to read & send SMS & MMS messages)_ sms_backup_plus/.log is empty ![Screenshot_20220224-162058_SMS_Backup+](https://user-images.githubusercontent.com/58657992/155556793-945b5a6e-bce6-401b-82a2-7953c0d9a5a3.png)
Author
Owner

@kurahaupo commented on GitHub (Sep 5, 2022):

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".

<!-- gh-comment-id:1236463351 --> @kurahaupo commented on GitHub (Sep 5, 2022): 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".
Author
Owner

@kurahaupo commented on GitHub (Sep 5, 2022):

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

<!-- gh-comment-id:1236467836 --> @kurahaupo commented on GitHub (Sep 5, 2022): « Messaging app » <- celui-ci veut le nom du logiciel que vous utilizez pour lire les SMS
Author
Owner

@wvengen commented on GitHub (Jan 4, 2024):

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.

<!-- gh-comment-id:1877414469 --> @wvengen commented on GitHub (Jan 4, 2024): 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.
Author
Owner

@kurahaupo commented on GitHub (Jan 22, 2024):

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

<!-- gh-comment-id:1902884476 --> @kurahaupo commented on GitHub (Jan 22, 2024): @wvengen I'll note that for a future update.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sms-backup-plus-jberkel#858
No description provided.