Re: Timing out while trying to connect to gmail. Config?
Mauricio Tavares <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <CAHEKYV5dNb5+K0i1cJ-F5adO1dPxytgJHMcgf_+_B78SmGt_Sg@mail.gmail.com> |
On Thu, Mar 7, 2019 at 1:29 PM Charles Cazabon <[email protected]> wrote: > > Mauricio Tavares <[email protected]> wrote: > > > > > > Aha. I had assumed from your initial report that it was timing out before > > > it was able to connect, login, retrieve any messages, etc. That's not the > > > case. > [...] > > > What you want to do in that case is set the max_messages_per_session to a > > > small value -- basically the maximum number of duplicate messages you want > > > to have to deal with. Try something like 10 or 20, for example. Then you > > > run getmail periodically (by hand, or with a helper) and it will > > > eventually have retrieved all of your mail, disconnecting after each batch > > > to make sure the server state is updated (which can get lost if the > > > connection is dropped). > > > > Reading https://support.google.com/a/answer/1071518?hl=en, I believe > > now I understand what is going on: gmail has IMAP bandwidth limit of > > 2500MB per day. > > That's interesting; I hadn't heard of that before, but it does explain the > behaviour you're seeing. So it looks like you'll have to stay under that I myself was also not aware of that; I really did not expect it since I never saw that with any other provider (OK, I will try with my old yahoo account, which is now probably full of important messages from the Nigerian Prince). It also means it will take quite a while to download the emails. Lesson learned: next time I create a new email account, start backing it up from the get going. > limit (or buy a bigger limit, if they support that). Presumably this is only > an issue while you retrieve your old mail; after you're "caught up" you'll > only be pulling down new mail each day (with a sane getmail configuration, > anyway). > > > I will change my config from X messages/day to MB per day. > > Not sure how - getmail doesn't have such a feature ;). Of course you can just > run getmail until it fails to connect, then have it wait until the next day to > start again. > Well, I think it has something that will be close enough to fit my needs: max_bytes_per_session. I actually set it to 2500*1024*1000 = 2560000000 bytes instead of 2500MB, and now will wait until tomorrow to see if it is successful. Then, after a few days of successful testing, I will just change my script and run getmail once a day, only trying again if it is not successful. > Charles > -- > ----------------------------------------------------------------------- > Charles Cazabon > GPL'ed software available at: http://pyropus.ca/software/ > ----------------------------------------------------------------------- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >