CC> I am using davmail because some [smart guy] thought that everybody CC> in the world would be happy to use Microsoft mailers.
LOL! Been there, done that. CC> I am using vm 8.2.0b, I applied the patch for bug 722014, and got CC> a little improvement vm logs on correctly but fails to fetch the CC> messages. CC> I get CC> Retrieval from smarties:inbox signaled: (vm-imap-protocol-error CC> expected (RFC822.SIZE number) in FETCH response) Sounds like DAVmail isn't sending what VM expects. It might be good to do a test by hand, where you send the IMAP commands and watch what you get back. CC> where smarties:inbox is the mailbox I am trying to get the messages CC> from. CC> The trace of the IMAP session is this: This trace isn't complete, it's not showing the actual commands and tags sent with the IMAP commands. Each command needs to have a leading Identifier so you can match commands and responses properly. Looking at this log below, it's hard to keep them straight. It's also not showing the FETCH commands used, while the DAVMAIL logs do show the fetch commands. I just looked at my saved IMAP trace log from my own setup, where I talk to Dovecot IMAP server and I don't see the response codes from the server either. Well... looking more closely, I see them in the DAVmail logs, where it returns the lines like this: RFC822.SIZE 24025 FLAGS (\Seen)) Which should be ok, but it's not clear how it's formatted. I looked at this page, and it would be great if you could run the commands by hand to get a better log. Look at this page: https://tools.ietf.org/id/draft-bosch-imap-status-size-00.html Then the "3. STATUS Command and Response Extensions" section. John CC> ---------------------------------8<--------------------------------- CC> Starting IMAP session Tue Feb 13 15:42:03 2018 CC> -- connecting to localhost:1143 CC> * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE] IMAP4rev1 DavMail 4.8.3-2554 server ready CC> -- connected for checkmail CC> VM CAPABILITY CC> * CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE CC> VM OK CAPABILITY completed CC> VM LOGIN <parameters omitted> CC> VM OK Authenticated CC> VM SELECT "inbox" CC> * 4 EXISTS CC> * 1 RECENT CC> * OK [UIDVALIDITY 1] CC> * OK [UIDNEXT 12747] CC> * FLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded Junk) CC> * OK [PERMANENTFLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded Junk \*)] CC> VM OK [READ-WRITE] SELECT completed CC> VM LOGOUT CC> * BYE Closing connection CC> VM OK LOGOUT completed CC> Process IMAP<1> connection broken by remote peer CC> ending IMAP session Tue Feb 13 15:42:03 2018 CC> ---------------------------------8<--------------------------------- CC> while the davmail log is that: CC> ---------------------------------8<--------------------------------- CC> 2018-02-13 15:42:32,681 DEBUG [davmail.imap.ImapServer] davmail - Connection from /127.0.0.1 on port 1143 CC> 2018-02-13 15:42:32,681 INFO [davmail.imap.ImapServer] davmail.connection - CONNECT - 127.0.0.1:43620 CC> 2018-02-13 15:42:32,749 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Test configuration status: 302 CC> 2018-02-13 15:42:32,749 DEBUG [ImapConnection-43620] davmail - > * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE] IMAP4rev1 DavMail 4.8.3-2554 server ready CC> 2018-02-13 15:42:32,749 DEBUG [ImapConnection-43620] davmail - < VM CAPABILITY CC> 2018-02-13 15:42:32,750 DEBUG [ImapConnection-43620] davmail - > * CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE CC> 2018-02-13 15:42:32,750 DEBUG [ImapConnection-43620] davmail - > VM OK CAPABILITY completed CC> 2018-02-13 15:42:32,788 DEBUG [ImapConnection-43620] davmail - < LOGIN ******** CC> 2018-02-13 15:42:32,788 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Got session davmail.exchange.ews.EwsExchangeSession@504b98b5 from cache CC> 2018-02-13 15:42:32,840 INFO [ImapConnection-43620] davmail.connection - LOGON - 127.0.0.1:43620 domain\username CC> 2018-02-13 15:42:32,840 DEBUG [ImapConnection-43620] davmail - > VM OK Authenticated CC> 2018-02-13 15:42:32,841 DEBUG [ImapConnection-43620] davmail - < VM SELECT "inbox" CC> 2018-02-13 15:42:33,008 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Folder inbox - Search items current count: 4 fetchCount: 500 highest uid: 12746 lowest uid: 12738 CC> 2018-02-13 15:42:33,009 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Message IMAP uid: 12738 uid: AAAAAA7fCW8jh2dOmx/lsnokJ5cBAOVkB+TURUxBtcGI8FNCgQQAAWHVeLgAAA== ItemId: AAMkADZiNTM0OTRhLTJhZTUtNDU4MS1hMzM0LTQ1NGUwZWEzYjU1MwBGAAAAAAAO3wlvI4dnTpsf5bJ6JCeXBwDlZAfk1EVMQbXBiPBTQoEEAAAAAAEMAADlZAfk1EVMQbXBiPBTQoEEAAFh1Xi4AAA= ChangeKey: CQAAABYAAADlZAfk1EVMQbXBiPBTQoEEAAFh5l6J CC> 2018-02-13 15:42:33,009 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Message IMAP uid: 12739 uid: AAAAAA7fCW8jh2dOmx/lsnokJ5cBAOVkB+TURUxBtcGI8FNCgQQAAWHVeLkAAA== ItemId: AAMkADZiNTM0OTRhLTJhZTUtNDU4MS1hMzM0LTQ1NGUwZWEzYjU1MwBGAAAAAAAO3wlvI4dnTpsf5bJ6JCeXBwDlZAfk1EVMQbXBiPBTQoEEAAAAAAEMAADlZAfk1EVMQbXBiPBTQoEEAAFh1Xi5AAA= ChangeKey: CQAAABYAAADlZAfk1EVMQbXBiPBTQoEEAAFh5l6K CC> 2018-02-13 15:42:33,009 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Message IMAP uid: 12741 uid: AAAAAA7fCW8jh2dOmx/lsnokJ5cBAOVkB+TURUxBtcGI8FNCgQQAAWHVeLsAAA== ItemId: AAMkADZiNTM0OTRhLTJhZTUtNDU4MS1hMzM0LTQ1NGUwZWEzYjU1MwBGAAAAAAAO3wlvI4dnTpsf5bJ6JCeXBwDlZAfk1EVMQbXBiPBTQoEEAAAAAAEMAADlZAfk1EVMQbXBiPBTQoEEAAFh1Xi7AAA= ChangeKey: CQAAABYAAADlZAfk1EVMQbXBiPBTQoEEAAFh5l6M CC> 2018-02-13 15:42:33,010 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Message IMAP uid: 12746 uid: AAAAAA7fCW8jh2dOmx/lsnokJ5cBAOVkB+TURUxBtcGI8FNCgQQAAWHVeL4AAA== ItemId: AAMkADZiNTM0OTRhLTJhZTUtNDU4MS1hMzM0LTQ1NGUwZWEzYjU1MwBGAAAAAAAO3wlvI4dnTpsf5bJ6JCeXBwDlZAfk1EVMQbXBiPBTQoEEAAAAAAEMAADlZAfk1EVMQbXBiPBTQoEEAAFh1Xi+AAA= ChangeKey: CQAAABYAAADlZAfk1EVMQbXBiPBTQoEEAAFh5l6j CC> 2018-02-13 15:42:33,010 DEBUG [ImapConnection-43620] davmail - > * 4 EXISTS CC> 2018-02-13 15:42:33,010 DEBUG [ImapConnection-43620] davmail - > * 1 RECENT CC> 2018-02-13 15:42:33,010 DEBUG [ImapConnection-43620] davmail - > * OK [UIDVALIDITY 1] CC> 2018-02-13 15:42:33,010 DEBUG [ImapConnection-43620] davmail - > * OK [UIDNEXT 12747] CC> 2018-02-13 15:42:33,010 DEBUG [ImapConnection-43620] davmail - > * FLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded Junk) CC> 2018-02-13 15:42:33,010 DEBUG [ImapConnection-43620] davmail - > * OK [PERMANENTFLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded Junk \*)] CC> 2018-02-13 15:42:33,010 DEBUG [ImapConnection-43620] davmail - > VM OK [READ-WRITE] SELECT completed CC> 2018-02-13 15:42:33,049 DEBUG [ImapConnection-43620] davmail - < VM FETCH 1:4 (UID RFC822.SIZE FLAGS) CC> 2018-02-13 15:42:33,097 DEBUG [ImapConnection-43620] davmail.imap.ImapConnection - * 1 FETCH (UID 12738 CC> 2018-02-13 15:42:33,197 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Downloaded full message content for IMAP UID 12738 (22679 bytes) CC> 2018-02-13 15:42:33,197 DEBUG [ImapConnection-43620] davmail - > RFC822.SIZE 22679 FLAGS (\Seen)) CC> 2018-02-13 15:42:33,197 DEBUG [ImapConnection-43620] davmail.imap.ImapConnection - * 2 FETCH (UID 12739 CC> 2018-02-13 15:42:33,270 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Downloaded full message content for IMAP UID 12739 (22886 bytes) CC> 2018-02-13 15:42:33,270 DEBUG [ImapConnection-43620] davmail - > RFC822.SIZE 22886 FLAGS (\Seen)) CC> 2018-02-13 15:42:33,270 DEBUG [ImapConnection-43620] davmail.imap.ImapConnection - * 3 FETCH (UID 12741 CC> 2018-02-13 15:42:34,396 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Downloaded full message content for IMAP UID 12741 (24025 bytes) CC> 2018-02-13 15:42:34,397 DEBUG [ImapConnection-43620] davmail - > RFC822.SIZE 24025 FLAGS (\Seen)) CC> 2018-02-13 15:42:34,398 DEBUG [ImapConnection-43620] davmail.imap.ImapConnection - * 4 FETCH (UID 12746 CC> 2018-02-13 15:42:34,564 DEBUG [ImapConnection-43620] davmail - Downloaded 131 KBytes from /ews/exchange.asmx CC> 2018-02-13 15:42:34,582 DEBUG [ImapConnection-43620] davmail - Downloaded 259 KBytes from /ews/exchange.asmx CC> 2018-02-13 15:42:34,584 DEBUG [ImapConnection-43620] davmail - Downloaded 387 KBytes from /ews/exchange.asmx CC> 2018-02-13 15:42:34,587 DEBUG [ImapConnection-43620] davmail - Downloaded 519 KBytes from /ews/exchange.asmx CC> 2018-02-13 15:42:34,590 DEBUG [ImapConnection-43620] davmail - Downloaded 649 KBytes from /ews/exchange.asmx CC> 2018-02-13 15:42:34,594 DEBUG [ImapConnection-43620] davmail - Downloaded 778 KBytes from /ews/exchange.asmx CC> 2018-02-13 15:42:34,627 DEBUG [ImapConnection-43620] davmail - Downloaded 907 KBytes from /ews/exchange.asmx CC> 2018-02-13 15:42:34,634 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Downloaded full message content for IMAP UID 12746 (700053 bytes) CC> 2018-02-13 15:42:34,634 DEBUG [ImapConnection-43620] davmail - > RFC822.SIZE 700053 FLAGS (\Recent)) CC> 2018-02-13 15:42:34,634 DEBUG [ImapConnection-43620] davmail - > VM OK FETCH completed CC> 2018-02-13 15:42:34,635 DEBUG [ImapConnection-43620] davmail - < VM FETCH 1:1 (RFC822.SIZE) CC> 2018-02-13 15:42:34,693 DEBUG [ImapConnection-43620] davmail.imap.ImapConnection - * 1 FETCH (UID 12738 CC> 2018-02-13 15:42:35,807 DEBUG [ImapConnection-43620] davmail.exchange.ExchangeSession - Downloaded full message content for IMAP UID 12738 (22679 bytes) CC> 2018-02-13 15:42:35,807 DEBUG [ImapConnection-43620] davmail - > RFC822.SIZE 22679) CC> 2018-02-13 15:42:35,812 DEBUG [ImapConnection-43620] davmail - > VM OK FETCH completed CC> ---------------------------------8<--------------------------------- CC> The mailbox is configured this way CC> (setq vm-imap-account-alist CC> '(("imap-ssl:outlook.office365.com:993:inbox:login:gianuberto.la...@eng.it:*" "gianuberto.la...@eng.it:*") CC> ("imap:localhost:1143:inbox:login:domain\\username:*" "smarties")) CC> ) CC> What could I have done wrong? CC> -- CC> Gian CC> Friends will be friends CC> right to the end!