On Sun, Jul 07, 2019 at 12:18:06AM +0200, Oswald Buddenhagen wrote:
the reads and writes on fd 3 are certainly on the ssl-secured imap
server socket, so there is no i/o operation that would actually refer to
the slave mailbox between the progress and error messages. that should
only ever happen when enumerating the mailboxes did determine a-priori
that the mailbox is missing ... except that it obviously *is* there, at
least to some degree.

i'd need a lot more of the strace to make sense of that, but using
mbsync's -D option (without category flags) might be actually more
helpful for starters. from two runs: the initial one after nuking the
mailbox and the followup. also, the full config file might help. send me
the files in private if necessary.

Here are the relevant parts of the output of `mbsync -D` from both runs
(after nuking, and the followup). If you want the full output (with all
the folders in this accout) I can post that too, but it's long!

Then below the two command output logs I am including the relevant
section of the .mbsyncrc file (i.e the section for this account). There
are no global sections of the .mbsyncrc file, so the included section
should be everything that matters.

IMMEDIATELY AFTER NUKING

M: Enter select_box, name=inbox
M: Leave select_box, ret=0
S: Enter select_box, name=inbox
S: Leave select_box, ret=0
S: Called get_box_path, ret=/home/user/Maildir/myaccount/inbox
Opening master box inbox...
M: [ 33] Enter open_box
M: >>> 16 SELECT "inbox"

M: [ 33] Leave open_box
Opening slave box inbox...
M: [ 31] Callback leave close_box
M: * 56 EXISTS
M: * 0 RECENT
M: * OK [UIDVALIDITY 1552378503]
M: * FLAGS (\Answered \Deleted \Draft \Flagged \Seen Sent)
M: * OK [PERMANENTFLAGS (\Answered \Deleted \Draft \Flagged \Seen Sent \*)]
M: 16 OK [READ-WRITE] SELECT
M: >>> 17 UID FETCH * (UID)

M: 17 OK UID FETCH done
M: [ 33] Callback enter open_box, sts=0, uidvalidity=1552378503
Creating slave inbox...
S: [ 34] Enter create_box
S: [ 34] Callback enter create_box, sts=0
S: [ 35] Enter open_box
Maildir notice: no UIDVALIDITY, creating new.
S: [ 35] Callback enter open_box, sts=0, uidvalidity=1562854793
M: Enter prepare_load_box, opts=0xe7
M: Leave prepare_load_box, ret=0xe7
S: Enter prepare_load_box, opts=0xe7
S: Leave prepare_load_box, ret=0xe7
Loading master...
M: [ 36] Enter load_box, [1,inf] (new >= 0, seen <= 0)
M: [ 36] Callback enter load_box, sts=0, total=56, recent=0
master: 56 messages, 0 recent
matching messages on master against sync records
M: [ 36] Callback leave load_box
M: [ 36] Leave load_box
Loading slave...
S: [ 37] Enter load_box, [1,inf] (new >= 0, seen <= 0)
S: [ 37] Callback enter load_box, sts=0, total=0, recent=0
slave: 0 messages, 0 recent
matching messages on slave against sync records
Synchronizing...
synchronizing old entries
synchronizing new entries
synchronizing flags
propagating new messages
M: Called get_uidnext, ret=1
S: Called get_uidnext, ret=0
expunging master
M: [ 38] Enter close_box
M: >>> 18 CLOSE

M: [ 38] Leave close_box
expunging slave
S: [ 39] Enter close_box
S: [ 39] Callback enter close_box, sts=0
S: [ 39] Callback leave close_box
S: [ 39] Leave close_box
S: [ 37] Callback leave load_box
S: [ 37] Leave load_box
S: [ 35] Callback leave open_box
S: [ 35] Leave open_box
S: [ 34] Callback leave create_box
S: [ 34] Leave create_box
M: [ 33] Callback leave open_box
M: 18 OK CLOSE done
M: [ 38] Callback enter close_box, sts=0
purging obsolete entries
max expired uid on master is now 0




FOLLOWUP RUN

M: Enter select_box, name=inbox
M: Leave select_box, ret=0
S: Enter select_box, name=inbox
S: Leave select_box, ret=0
S: Called get_box_path, ret=/home/user/Maildir/myaccount/inbox
reading sync state /home/user/Maildir/myaccount/inbox/.mbsyncstate ...
Opening master box inbox...
M: [ 35] Enter open_box
M: >>> 19 SELECT "inbox"

M: [ 35] Leave open_box
Opening slave box inbox...
M: [ 33] Callback leave close_box
M: * 56 EXISTS
M: * 0 RECENT
M: * OK [UIDVALIDITY 1552378503]
M: * FLAGS (\Answered \Deleted \Draft \Flagged \Seen Sent)
M: * OK [PERMANENTFLAGS (\Answered \Deleted \Draft \Flagged \Seen Sent \*)]
M: 19 OK [READ-WRITE] SELECT
M: >>> 20 UID FETCH * (UID)

M: 20 OK UID FETCH done
M: [ 35] Callback enter open_box, sts=0, uidvalidity=1552378503
Error: channel myaccount: slave inbox cannot be opened.


MBSYNCRC

# myaccount
IMAPAccount myaccount
Host mail.myhost.com
User myacco...@myhost.com
PassCmd "my-pass-command"
SSLType IMAPS

IMAPstore myaccount-remote
Account myaccount

MaildirStore myaccount-local
SubFolders Verbatim
Path /home/user/Maildir/myaccount/
Inbox /home/user/Maildir/myaccount/inbox

Channel myaccount
Master :myaccount-remote:
Slave :myaccount-local:
Patterns *
Create Both
Expunge Both
SyncState *




_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to