Re: Mailbox closed with gmail account

2016-10-07 Thread Grant Edwards
On 2016-10-07, tristero tristero  wrote:
> Hello,
> I'm trying to configure Mutt to access a gmail account. I had a look
> at some tutorials and configurations and right now this is my .muttrc:
>
> set imap_user = "myu...@gmail.com"
> set imap_pass = "xx"
>
> set smtp_url = 'smtp://myu...@smtp.gmail.com:587/'
> set smtp_pass='xxx'
>
> set from = 'myu...@gmail.com'
> set realname = 'Name'
>
> set folder="imaps://imap.gmail.com"
> set spoolfile="imaps://imap.gmail.com/INBOX"
> set record="imaps://imap.gmail.com/[Gmail]/Sent Mail"
> set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"
>
> set header_cache = "~/.mutt/cache/headers"
> set message_cachedir = "~/.mutt/cache/bodies"
> set certificate_file = "~/.mutt/certificates"
>
> set move = no
> set smtp_authenticators = 'gssapi:login'
> set imap_keepalive = 120
> set imap_idle=yes
> set mail_check = 1


> The problem is that after a couple of minutes of inactivity, it
> disconnects and it displays the message "Mailbox closed". I've already
> looked around for a solution and as you can see at the end of my
> configuration I tried setting a very small time interval to keepalive
> and also mail_check, but still nothing.

Here's what I use:

  set mail_check=90
  set timeout=15
  set imap_keepalive=30

AFAICT, I don't have imap_idle enabled.  I use mutt with gmail/imap
almost exclusively, and never notice any issues.  But, I don't usually
leave mutt sitting open when I'm not actually reading or sending mail.

-- 
Grant Edwards   grant.b.edwardsYow! I'm having an
  at   EMOTIONAL OUTBURST!!  But,
  gmail.comuh, WHY is there a WAFFLE
   in my PAJAMA POCKET??



Re: Mailbox closed with gmail account

2016-10-07 Thread lists
On Fri, Oct 07, 2016 at 11:13:05AM +0200, tristero tristero wrote:
> Hello,

> The problem is that after a couple of minutes of inactivity, it
> disconnects and it displays the message "Mailbox closed". I've already
> looked around for a solution and as you can see at the end of my
> configuration I tried setting a very small time interval to keepalive
> and also mail_check, but still nothing.
> Is there a solution to this?

I am personally not a user of gmail so I am not sure if this is a
client-contrallable option to begin with as it makes to close
long-standing IMAP connections on the server side (at least with free
email products...) but most people I know about use mutt + gmail with
tools like offlineimap, fetchmail or similar which sync the IMAP folders
to local storage in regular intervals (and back if you make local
changes). This could serve as a workaround if this can't be solved in
terms of client-side configuration.


Mailbox closed with gmail account

2016-10-07 Thread tristero tristero
Hello,
I'm trying to configure Mutt to access a gmail account. I had a look
at some tutorials and configurations and right now this is my .muttrc:

set imap_user = "myu...@gmail.com"
set imap_pass = "xx"

set smtp_url = 'smtp://myu...@smtp.gmail.com:587/'
set smtp_pass='xxx'

set from = 'myu...@gmail.com'
set realname = 'Name'

set folder="imaps://imap.gmail.com"
set spoolfile="imaps://imap.gmail.com/INBOX"
set record="imaps://imap.gmail.com/[Gmail]/Sent Mail"
set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"

set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"

set move = no
set smtp_authenticators = 'gssapi:login'
set imap_keepalive = 120
set imap_idle=yes
set mail_check = 1

The problem is that after a couple of minutes of inactivity, it
disconnects and it displays the message "Mailbox closed". I've already
looked around for a solution and as you can see at the end of my
configuration I tried setting a very small time interval to keepalive
and also mail_check, but still nothing.
Is there a solution to this?

Thank you