|
From: David D. <dws...@gm...> - 2022-02-18 12:17:48
|
Hello, I am getting the following error message with mbsync -a: Error: channel gmail-trash: master [Gmail]/Bin cannot be opened. I have had this for several days, and mail marked for deletion in mu4e is accumulating. This problem arrived suddenly, for no apparent reason, after my present set-up had been working well for a couple of months. Any help in fixing this would be greatly appreciated. Thanks, David |
|
From: Oswald B. <osw...@gm...> - 2022-02-18 13:20:19
|
On Fri, Feb 18, 2022 at 07:17:40AM -0500, David Denton wrote: >Error: channel gmail-trash: master [Gmail]/Bin cannot be opened. > >This problem arrived suddenly, for no apparent reason, after my present >set-up had been working well for a couple of months. > well, obviously, *something* must have changed ... for starters, please post your config file, and the output of mbsync -D -l gmail-trash |
|
From: David D. <dws...@gm...> - 2022-02-18 16:07:52
Attachments:
mbsync.log
|
Please find my config, below. The output from mbsync -D -l gmail-trash is attached. Thank you. David # mbsyncrc based on # http://www.ict4g.net/adolfo/notes/2014/12/27/EmacsIMAP.html # ACCOUNT INFORMATION IMAPAccount gmail # Address to connect to Host imap.gmail.com User my_...@gm... PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.emacs.d/mu4e/gmailpass.gpg" # PassCmd "pass email/mbsync.gpg" AuthMechs LOGIN SSLType IMAPS # add line below for debugging? # DisableExtension COMPRESS=DEFLATE SSLVersions TLSv1 CertificateFile /etc/ssl/certs/ca-certificates.crt # alternate certificate # /etc/ssl/certs/ca-certificates.crt # add line below for debugging? # Tunnel "openssl s_client -connect imap.mailbox.org:993 -quiet -no_ign_eof" # - THE REMOTE STORAGE IS WHERE WE GET THE MAIL FROM (E.G., THE # SPECIFICATION OF AN IMAP ACCOUNT) # - THE LOCAL STORAGE IS WHERE WE STORE THE EMAIL ON OUR COMPUTER # REMOTE STORAGE (USE THE IMAP ACCOUNT SPECIFIED ABOVE) IMAPStore gmail-remote Account gmail # LOCAL STORAGE (CREATE DIRECTORIES with mkdir -p Maildir/gmail) MaildirStore gmail-local Path ~/mbsync/ Inbox ~/mbsync/INBOX # CONNECTIONS SPECIFY LINKS BETWEEN REMOTE AND LOCAL FOLDERS # # CONNECTIONS ARE SPECIFIED USING PATTERNS, WHICH MATCH REMOTE MAIl # FOLDERS. SOME COMMONLY USED PATTERS INCLUDE: # # 1 "*" TO MATCH EVERYTHING # 2 "!DIR" TO EXCLUDE "DIR" # 3 "DIR" TO MATCH DIR Channel gmail-inbox Master :gmail-remote: Slave :gmail-local: Patterns "INBOX" Create Both Expunge Both SyncState * Channel gmail-trash Master :gmail-remote:"[Gmail]/Bin" Slave :gmail-local:"[Gmail].Bin" Create Both Expunge Both SyncState * Channel gmail-sent Master :gmail-remote:"[Gmail]/Sent Mail" Slave :gmail-local:"[Gmail].Sent Mail" Create Both Expunge Both SyncState * Channel gmail-all Master :gmail-remote:"[Gmail]/All Mail" Slave :gmail-local:"[Gmail].All Mail" Create Both Expunge Both SyncState * Channel gmail-starred Master :gmail-remote:"[Gmail]/Starred" Slave :gmail-local:"[Gmail].Starred" Create Both Expunge Both SyncState * # GROUPS PUT TOGETHER CHANNELS, SO THAT WE CAN INVOKE # MBSYNC ON A GROUP TO SYNC ALL CHANNELS # # FOR INSTANCE: "mbsync gmail" GETS MAIL FROM # "gmail-inbox", "gmail-sent", and "gmail-trash" # Group gmail Channel gmail-inbox Channel gmail-sent Channel gmail-trash Channel gmail-all Channel gmail-starred Oswald Buddenhagen <osw...@gm...> writes: > On Fri, Feb 18, 2022 at 07:17:40AM -0500, David Denton wrote: >>Error: channel gmail-trash: master [Gmail]/Bin cannot be opened. >> >>This problem arrived suddenly, for no apparent reason, after my present >>set-up had been working well for a couple of months. >> > well, obviously, *something* must have changed ... > for starters, please post your config file, and the output of > > mbsync -D -l gmail-trash > > > > _______________________________________________ > isync-devel mailing list > isy...@li... > https://lists.sourceforge.net/lists/listinfo/isync-devel |
|
From: Oswald B. <osw...@gm...> - 2022-02-18 19:31:24
|
On Fri, Feb 18, 2022 at 11:07:41AM -0500, David Denton wrote: >The output from mbsync -D -l gmail-trash is attached. > ok, that was of course a stupid request from me, as the output was predictable. instead, create a channel like this: Channel gmail-fake Master :gmail-remote: Slave :gmail-local: Patterns * Create None Expunge None and then re-run the command for it. that should give us the actual contents of the stores as mbsync sees them. but then, i dimly remember that there was such an issue in the past. maybe you just need to upgrade to v1.4. |
|
From: David D. <dws...@gm...> - 2022-02-18 20:16:00
|
Here is the result with the new channel: Reading configuration file /home/david/.mbsyncrc Channel gmail-trash Opening master store gmail-remote... M: [ 1] Enter connect_store Resolving imap.gmail.com... ok Connecting to imap.gmail.com (172.253.63.109:993)... M: [ 1] Leave connect_store Opening slave store gmail-local... S: [ 2] Enter connect_store S: [ 2] Callback enter connect_store, sts=0 S: [ 2] Callback leave connect_store S: [ 2] Leave connect_store Connection is now encrypted M: * OK Gimap ready for requests from 24.212.48.165 131mb30499149qkg M: >>> 1 CAPABILITY M: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER AUTH=XOAUTH M: 1 OK Thats all she wrote! 131mb30499149qkg Logging in... M: >>> 2 LOGIN <user> <pass> M: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584 M: 2 OK my_...@gm... authenticated (Success) M: >>> 3 COMPRESS DEFLATE M: 3 OK Success M: >>> 4 NAMESPACE M: * NAMESPACE (("" "/")) NIL NIL M: 4 OK Success M: [ 1] Callback enter connect_store, sts=0 [Gmail]/Bin <=> [Gmail].Bin M: [ 3] Enter cancel_cmds M: [ 3] Callback enter cancel_cmds M: Enter free_store M: Leave free_store M: [ 3] Callback leave cancel_cmds M: [ 3] Leave cancel_cmds S: [ 4] Enter cancel_cmds S: [ 4] Callback enter cancel_cmds S: Enter free_store S: Leave free_store S: [ 4] Callback leave cancel_cmds S: [ 4] Leave cancel_cmds M: >>> 5 LOGOUT M: [ 1] Callback leave connect_store M: * BYE LOGOUT Requested M: 5 OK 73 good day (Success) Oswald Buddenhagen <osw...@gm...> writes: > On Fri, Feb 18, 2022 at 11:07:41AM -0500, David Denton wrote: >>The output from mbsync -D -l gmail-trash is attached. >> > ok, that was of course a stupid request from me, as the output was > predictable. > > instead, create a channel like this: > > Channel gmail-fake > Master :gmail-remote: > Slave :gmail-local: > Patterns * > Create None > Expunge None > > and then re-run the command for it. that should give us the actual > contents of the stores as mbsync sees them. > > but then, i dimly remember that there was such an issue in the past. > maybe you just need to upgrade to v1.4. > > > > _______________________________________________ > isync-devel mailing list > isy...@li... > https://lists.sourceforge.net/lists/listinfo/isync-devel |
|
From: Oswald B. <osw...@gm...> - 2022-02-19 00:16:33
|
On Fri, Feb 18, 2022 at 03:15:42PM -0500, David Denton wrote: >Here is the result with the new channel: > you need to actually use it in the command invocation ... |
|
From: David D. <dws...@gm...> - 2022-02-19 20:23:15
|
Sorry, hope that this does it: Reading configuration file /home/david/.mbsyncrc Channel gmail-fake Opening master store gmail-remote... M: [ 1] Enter connect_store Resolving imap.gmail.com... ok Connecting to imap.gmail.com (172.253.122.109:993)... M: [ 1] Leave connect_store Opening slave store gmail-local... S: [ 2] Enter connect_store S: [ 2] Callback enter connect_store, sts=0 pattern '*' (effective '*'): Path, no INBOX S: [ 3] Enter list_store, flags=2 S: [ 3] Callback enter list_store [Gmail].All Mail [Gmail].Drafts [Gmail].Sent Mail [Gmail].Bin INBOX [Gmail].Starred S: [ 3] Callback leave list_store S: [ 3] Leave list_store S: [ 2] Callback leave connect_store S: [ 2] Leave connect_store Connection is now encrypted M: * OK Gimap ready for requests from 24.212.48.165 h3mb340036494qkn M: >>> 1 CAPABILITY M: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER AUTH=XOAUTH M: 1 OK Thats all she wrote! h3mb340036494qkn Logging in... M: >>> 2 LOGIN <user> <pass> M: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584 M: 2 OK my_...@gm... authenticated (Success) M: >>> 3 COMPRESS DEFLATE M: 3 OK Success M: >>> 4 NAMESPACE M: * NAMESPACE (("" "/")) NIL NIL M: 4 OK Success M: [ 1] Callback enter connect_store, sts=0 pattern '*' (effective '*'): Path, no INBOX M: [ 4] Enter list_store, flags=2 M: >>> 5 LIST "" "*" M: [ 4] Leave list_store M: [ 1] Callback leave connect_store M: * LIST (\HasChildren) "/" "INBOX" M: * LIST (\HasNoChildren) "/" "INBOX/Trash" M: * LIST (\HasNoChildren) "/" "Junk" M: * LIST (\HasNoChildren) "/" "Personal" M: * LIST (\HasNoChildren) "/" "Unwanted" M: * LIST (\HasNoChildren) "/" "Work" M: * LIST (\HasChildren \Noselect) "/" "[Gmail]" M: * LIST (\All \HasChildren) "/" "[Gmail]/All Mail" M: * LIST (\HasNoChildren) "/" "[Gmail]/All Mail/2009" M: * LIST (\HasNoChildren) "/" "[Gmail]/All Mail/2010" M: * LIST (\HasNoChildren) "/" "[Gmail]/All Mail/2011" M: * LIST (\HasNoChildren) "/" "[Gmail]/All Mail/2012" M: * LIST (\HasNoChildren) "/" "[Gmail]/All Mail/2013" M: * LIST (\HasNoChildren) "/" "[Gmail]/All Mail/2014" M: * LIST (\HasNoChildren) "/" "[Gmail]/All Mail/2015" M: * LIST (\HasNoChildren) "/" "[Gmail]/All Mail/2016" M: * LIST (\HasNoChildren) "/" "[Gmail]/All Mail/2017" M: * LIST (\HasNoChildren) "/" "[Gmail]/All Mail/2018" M: * LIST (\Drafts \HasNoChildren) "/" "[Gmail]/Drafts" M: * LIST (\HasNoChildren \Important) "/" "[Gmail]/Important" M: * LIST (\HasNoChildren \Sent) "/" "[Gmail]/Sent Mail" M: * LIST (\HasNoChildren \Junk) "/" "[Gmail]/Spam" M: * LIST (\Flagged \HasNoChildren) "/" "[Gmail]/Starred" M: * LIST (\HasChildren \Trash) "/" "[Gmail]/Trash" M: * LIST (\HasNoChildren) "/" "[Gmail]/Trash/Mail Lists" M: 5 OK Success M: [ 4] Callback enter list_store [Gmail]/Trash/Mail Lists [Gmail]/Trash [Gmail]/Starred [Gmail]/Spam [Gmail]/Sent Mail [Gmail]/Important [Gmail]/Drafts [Gmail]/All Mail/2018 [Gmail]/All Mail/2017 [Gmail]/All Mail/2016 [Gmail]/All Mail/2015 [Gmail]/All Mail/2014 [Gmail]/All Mail/2013 [Gmail]/All Mail/2012 [Gmail]/All Mail/2011 [Gmail]/All Mail/2010 [Gmail]/All Mail/2009 [Gmail]/All Mail Work Unwanted Personal Junk INBOX/Trash INBOX INBOX INBOX/Trash Junk Personal Unwanted Work [Gmail].All Mail [Gmail].Bin [Gmail].Drafts [Gmail].Sent Mail [Gmail].Starred [Gmail]/All Mail [Gmail]/All Mail/2009 [Gmail]/All Mail/2010 [Gmail]/All Mail/2011 [Gmail]/All Mail/2012 [Gmail]/All Mail/2013 [Gmail]/All Mail/2014 [Gmail]/All Mail/2015 [Gmail]/All Mail/2016 [Gmail]/All Mail/2017 [Gmail]/All Mail/2018 [Gmail]/Drafts [Gmail]/Important [Gmail]/Sent Mail [Gmail]/Spam [Gmail]/Starred [Gmail]/Trash [Gmail]/Trash/Mail Lists M: [ 5] Enter cancel_cmds M: [ 5] Callback enter cancel_cmds M: Enter free_store M: Leave free_store M: [ 5] Callback leave cancel_cmds M: [ 5] Leave cancel_cmds S: [ 6] Enter cancel_cmds S: [ 6] Callback enter cancel_cmds S: Enter free_store S: Leave free_store S: [ 6] Callback leave cancel_cmds S: [ 6] Leave cancel_cmds M: >>> 6 LOGOUT M: [ 4] Callback leave list_store M: * BYE LOGOUT Requested M: 6 OK 73 good day (Success) Oswald Buddenhagen <osw...@gm...> writes: > On Fri, Feb 18, 2022 at 03:15:42PM -0500, David Denton wrote: >>Here is the result with the new channel: >> > you need to actually use it in the command invocation ... > > > _______________________________________________ > isync-devel mailing list > isy...@li... > https://lists.sourceforge.net/lists/listinfo/isync-devel |
|
From: Oswald B. <osw...@gm...> - 2022-02-19 21:15:48
|
so we have this ... On Sat, Feb 19, 2022 at 03:23:06PM -0500, David Denton wrote: >M: * LIST (\HasChildren \Trash) "/" "[Gmail]/Trash" ... which clearly doesn't fit this: >Channel gmail-trash >Master :gmail-remote:"[Gmail]/Bin" how come? |
|
From: David D. <dws...@gm...> - 2022-02-19 23:06:13
|
Things have gotten a little more confused since, forgetting that I had added the gmail-fake channel, I pressed u to update mu with mu4e. When I finally figured out how to kill the mu4e process, a lot of messages had been synced to the fake channel. No knowing what else to do, I removed the gmail-fake from the config and tried to re-sync. However, my mu4e interface still reports that I have 55000 odd messages whereas it normally reported around 35000. So this is potentially another issue to deal with. Perhaps it will sort itself out. David Denton <dws...@gm...> writes: > Oswald Buddenhagen <osw...@gm...> writes: > >> so we have this ... >> >> On Sat, Feb 19, 2022 at 03:23:06PM -0500, David Denton wrote: >>>M: * LIST (\HasChildren \Trash) "/" "[Gmail]/Trash" >> >> ... which clearly doesn't fit this: >> >>>Channel gmail-trash >>>Master :gmail-remote:"[Gmail]/Bin" >> >> how come? >> > No idea. This issue started after my deleting emails from my phone using the Android gmail app, going to "Bin" on the app and then clicking on "Empty Bin now". > > But how to fix this? > > >> >> >> _______________________________________________ >> isync-devel mailing list >> isy...@li... >> https://lists.sourceforge.net/lists/listinfo/isync-devel |
|
From: David D. <dws...@gm...> - 2022-02-19 22:54:37
|
Oswald Buddenhagen <osw...@gm...> writes: > so we have this ... > > On Sat, Feb 19, 2022 at 03:23:06PM -0500, David Denton wrote: >>M: * LIST (\HasChildren \Trash) "/" "[Gmail]/Trash" > > ... which clearly doesn't fit this: > >>Channel gmail-trash >>Master :gmail-remote:"[Gmail]/Bin" > > how come? > No idea. This issue started after my deleting emails from my phone using the Android gmail app, going to "Bin" on the app and then clicking on "Empty Bin now". But how to fix this? > > > _______________________________________________ > isync-devel mailing list > isy...@li... > https://lists.sourceforge.net/lists/listinfo/isync-devel |
|
From: David D. <dws...@gm...> - 2022-02-20 12:58:34
|
Oswald Buddenhagen <osw...@gm...> writes: > just play along and adjust the name of the remote box in your config. > optionally, you can also adjust the local name and rename the maildir. Renaming the remote box resolved the issue. > On Sat, Feb 19, 2022 at 06:06:05PM -0500, David Denton wrote: >>Things have gotten a little more confused since, [...] >> > maybe the reason is actually the same as for the trash problem: the app > messed with the labels, so your visible folders changed in numerous > ways. This explanation makes sense to me. In any case, after the syncing appeared to be working again, I re-indexed mu and the number of messages indicated is now what I would expect. Thanks very much for walking me through this! > > > > _______________________________________________ > isync-devel mailing list > isy...@li... > https://lists.sourceforge.net/lists/listinfo/isync-devel |
|
From: Oswald B. <osw...@gm...> - 2022-02-20 10:35:07
|
On Sat, Feb 19, 2022 at 05:54:15PM -0500, David Denton wrote: >This issue started after my deleting emails from my phone using the >Android gmail app, going to "Bin" on the app and then clicking on >"Empty Bin now". > apparently, the app thought it would be a good idea to "normalize" the trashbin's name. >But how to fix this? > just play along and adjust the name of the remote box in your config. optionally, you can also adjust the local name and rename the maildir. On Sat, Feb 19, 2022 at 06:06:05PM -0500, David Denton wrote: >Things have gotten a little more confused since, [...] > hmm, i wonder what exactly happened. you shouldn't have gotten new folders, provided you copied my instructions verbatim. i also don't see a reason why messages would have been duplicated. maybe the reason is actually the same as for the trash problem: the app messed with the labels, so your visible folders changed in numerous ways. |