I had the same issue. And just recently resolved it.
I have tried to connect mutt to the davmail and in mutt configuration file just placed the same lines as was in configuration for gmail and I didn't noticed that they should be different.
So, one of the line was:
set folder = "imaps://localhost:1143" # I just changed imap.gmail.com:993 to localhost:1143
But it is wrong. Instead of imaps should be imap (without 's' in the end!)
I had the same issue. And just recently resolved it.
I have tried to connect mutt to the davmail and in mutt configuration file just placed the same lines as was in configuration for gmail and I didn't noticed that they should be different.
So, one of the line was:
set folder = "imaps: //localhost: 1143" # I just changed imap.gmail.com:993 to localhost:1143
But it is wrong. Instead of imaps should be imap (without 's' in the end!)
Good luck!