On 2015-07-17, Aurélien Rivet <aurelienri...@hotmail.fr> wrote: > Hello, > I am using Mutt on archlinux and I am going crazy because I just can't > understand its strange behaviour. Let me explain: I want to read mails > from Microsoft's free mail service Outlook.com (which replaced hotmail) > using the IMAP protocol. Since mutt has embedded support for IMAP, I > haven't installed an external program. The problem is that my mutt can't > keep an IMAP connexion for a longtime and I get a "mailbox closed" > message at the bottom after a random time. Very annoying. As I'm not a > native english speaker, I used to think that I did something wrong in my > .muttrc. So I decided to ask you for some advices. What can I do to > solve my problem ? > > I have joined the content of my .muttrc with dummy address and password. > I really appreciate any help you can provide.
Try setting imap_keepalive? It defaults to 900 seconds, but I found with some servers a much smaller value was required. I currently have mine set to 30. [I've never used Outlook.com, but I have used other servers that would close mailboxes when used with the default value of 900.] >From http://www.mutt.org/doc/manual/manual-6.html imap_keepalive Type: number Default: 900 This variable specifies the maximum amount of time in seconds that mutt will wait before polling open IMAP connections, to prevent the server from closing them before mutt has finished with them. The default is well within the RFC-specified minimum amount of time (30 minutes) before a server is allowed to do this, but in practice the RFC does get violated every now and then. Reduce this number if you find yourself getting disconnected from your IMAP server due to inactivity -- Grant Edwards grant.b.edwards Yow! Is this TERMINAL fun? at gmail.com