update on this: to make a long story short....
1) I did run mutt with debug enabled , but could not recognize anything useful 2) I had the same problem with mutt from my laptop 3) a few days ago I received a new modem from my ISP, as part of their network upgrade operations 4) more or less in the same moment the problem I reported here disappeared. Now mutt stays connected even 24 hours without losing connection. I am NOT 100% sure that the problem disappeared AFTER the change of modem. That happened during a few chaotic days, both work- and family-wise, so I did not take notes. And modems may have nothing to do at all with the disconnections. But now the problem is not there anymore, I have no clue what may have happened, and if anybody can guess... thanks in advance. Il giorno mar 13 apr 2021 alle ore 15:37 Kevin J. McCarthy <ke...@8t8.us> ha scritto: > > On Tue, Apr 13, 2021 at 10:09:32AM +0200, Marco Fioretti wrote: > >imap_poll_layout was not set in my murttrc file. > > If not set, it defaults to 15 seconds. > > >Setting it to 0, which according to manual should disable it, just > >made mutt freeze > > Setting it to 0 turns off the polling. So Mutt is sending the > IDLE/NOOP/STATUS and trying to read the response, without polling the > connection first. > > If Mutt freezes in that case, then the connection to dovecot has died. > > >set imap_poll_timeout = 600 made it freeze too, but eventually > >recovered, and had to reopen the inbox > > Setting it to 600 means Mutt will wait 10 minutes for a response from > the server before declaring the connection is dead and trying to > reconnect. If it then reopened the mailbox, that also means the > connection to dovecot died. > > >Launching mutt with the -d 2 option did not produce anything visible. > >Where should debug messages appear, btw? In mutt itself, or in some > >log file? What could I try next? > > This flag produces a file ~/.muttdebug0 in your home directory with > debugging output, including IMAP commands sent and received. > > Perhaps you can compare that and the dovecot log, and see if you can > find out why all the "logged out" messages are appearing. > > -- > Kevin J. McCarthy > GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA