@bobfrankston/mailx-imap 0.1.88 → 0.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +8 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3432,7 +3432,14 @@ export class ImapManager extends EventEmitter {
|
|
|
3432
3432
|
}
|
|
3433
3433
|
try {
|
|
3434
3434
|
if (action.action === "flags" && api.setFlags) {
|
|
3435
|
-
|
|
3435
|
+
// Pass the stored Gmail message id (provider_id) for
|
|
3436
|
+
// the same reason as trashMessage below: without it
|
|
3437
|
+
// setFlags falls back to a capped list-and-hash
|
|
3438
|
+
// search that misses older messages, so starring one
|
|
3439
|
+
// failed ("UID not found in INBOX") and the local
|
|
3440
|
+
// star reverted on the next sync (Bob 2026-06-12).
|
|
3441
|
+
const env = this.db.getMessageByUid(accountId, action.uid);
|
|
3442
|
+
await api.setFlags(folder.path, action.uid, action.flags || [], env?.providerId);
|
|
3436
3443
|
console.log(` [api] ${accountId}: flags synced UID ${action.uid}`);
|
|
3437
3444
|
}
|
|
3438
3445
|
else if ((action.action === "delete" || action.action === "trash") && api.trashMessage) {
|