Thanks for quick response. Some weird things are happening that I cannot make sense. Below is the relevant lines from mu.log when I mark an email for archiving (refile) and execute:
2024-03-16 16:36:31 (process:39005): mu-DEBUG: 16:36:31.329: moving /Users/kouroshm/Mail/
k.ka...@gmail.com/Inbox/new/1710620374.38908_23.mac-y6f3c3vgh0,U=51:2, --> /Users/kouroshm/Mail/
k.ka...@gmail.com/Inbox/cur/1710620374.38908_23.mac-y6f3c3vgh0,U=51:2,S (assume-remote:false)
2024-03-16 16:36:31 (process:39005): mu-DEBUG: 16:36:31.330: moved /Users/kouroshm/Mail/
k.ka...@gmail.com/Inbox/new/1710620374.38908_23.mac-y6f3c3vgh0,U=51:2, -> /Users/kouroshm/Mail/
k.ka...@gmail.com/Inbox/cur/1710620374.38908_23.mac-y6f3c3vgh0,U=51:2,S
2024-03-16 16:36:31 (process:39005): mu-DEBUG: 16:36:31.383: sw: query: 'i:1207403003.7483076.1710613180862@e2bc458242d0'; (related:no; threads:no; ngrams:no; max-size:∞): finished after 2.1 ms
2024-03-16 16:36:31 (process:39005): mu-DEBUG: 16:36:31.383: moving /Users/kouroshm/Mail/
k.ka...@gmail.com/[Gmail].All Mail/new/1710620375.38908_53.mac-y6f3c3vgh0,U=2712:2, --> /Users/kouroshm/Mail/
k.ka...@gmail.com/[Gmail].All Mail/cur/1710620375.38908_53.mac-y6f3c3vgh0,U=2712:2,S (assume-remote:false)
2024-03-16 16:36:31 (process:39005): mu-DEBUG: 16:36:31.384: moved /Users/kouroshm/Mail/
k.ka...@gmail.com/[Gmail].All Mail/new/1710620375.38908_53.mac-y6f3c3vgh0,U=2712:2, -> /Users/kouroshm/Mail/
k.ka...@gmail.com/[Gmail].All Mail/cur/1710620375.38908_53.mac-y6f3c3vgh0,U=2712:2,S
2024-03-16 16:36:40 (process:39005): mu-DEBUG: 16:36:40.403: moving /Users/kouroshm/Mail/
k.ka...@gmail.com/Inbox/cur/1710620374.38908_23.mac-y6f3c3vgh0,U=51:2,S --> /Users/kouroshm/Mail/
k.ka...@gmail.com/[Gmail].All Mail/cur/1710621400.6d0bf6199e7fb04ee.mac-y6f3c3vgh0.local:2,S (assume-remote:false)
Everything is working fine locally and I can see the email is in [Gmail].All Mail indexed by mu. I can also find 1710621400.6d0bf6199e7fb04ee.mac-y6f3c3vgh0.local in maildir/
k.ka...@gmail.com/[Gmail].All Mail/cur/. Then, I ran mbsync, the email is moved to trash on the server side, which is also reflected in mu4e i.e., the email is in [Gmail].Trash locally. The curious thing is that 1710621400.6d0bf6199e7fb04ee.mac-y6f3c3vgh0.local is still in maildir/
k.ka...@gmail.com/[Gmail].All Mail/cur/.
I don't know whether it is related or not but I am getting the following warnings too:
2024-03-16 16:56:44 (process:39005): mu-WARNING **: 16:56:44.632: xapian_try: xapian error 'Data ran out unexpectedly when reading posting list'
2024-03-16 16:56:44 (process:39005): mu-WARNING **: 16:56:44.633: xapian_try: xapian error 'Data ran out unexpectedly when reading posting list'
And the following errors in Emacs:
error in process filter: mu4e-error: [mu4e] Error 113: failed to run query: failed to read database
error in process filter: [mu4e] Error 113: failed to run query: failed to read database
Thanks,
Kourosh