@bobfrankston/rmfmail 1.1.242 → 1.1.244

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.
@@ -3431,7 +3431,14 @@ export class ImapManager extends EventEmitter {
3431
3431
  if (!folder) { this.db.completeSyncAction(action.id); continue; }
3432
3432
  try {
3433
3433
  if (action.action === "flags" && api.setFlags) {
3434
- await api.setFlags(folder.path, action.uid, action.flags || []);
3434
+ // Pass the stored Gmail message id (provider_id) for
3435
+ // the same reason as trashMessage below: without it
3436
+ // setFlags falls back to a capped list-and-hash
3437
+ // search that misses older messages, so starring one
3438
+ // failed ("UID not found in INBOX") and the local
3439
+ // star reverted on the next sync (Bob 2026-06-12).
3440
+ const env: any = this.db.getMessageByUid(accountId, action.uid);
3441
+ await api.setFlags(folder.path, action.uid, action.flags || [], env?.providerId);
3435
3442
  console.log(` [api] ${accountId}: flags synced UID ${action.uid}`);
3436
3443
  } else if ((action.action === "delete" || action.action === "trash") && api.trashMessage) {
3437
3444
  // Pass the stored Gmail message id (provider_id) so
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx-imap",
3
- "version": "0.1.88",
3
+ "version": "0.1.89",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bobfrankston/mailx-imap",
9
- "version": "0.1.88",
9
+ "version": "0.1.89",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@bobfrankston/iflow-direct": "^0.1.27",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx-imap",
3
- "version": "0.1.88",
3
+ "version": "0.1.89",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx-store",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",