I have getmail working pulling email from my gmail account using imap and it only grabs the new mail for me each time I run it and I open up mutt and go through the email then mutt purges what I deleted as it exits.
On Sat, 27 Jul 2019, Grant Edwards wrote: > Date: Sat, 27 Jul 2019 12:24:53 > From: Grant Edwards <grant.b.edwa...@gmail.com> > To: mutt-users@mutt.org > Subject: Re: Preferred way to get imap emails > > On 2019-07-27, Pankaj Jangid <pankaj.jan...@gmail.com> wrote: > > > I have very recently switched back to mutt. My 1st question is - is > > the preferred way to get imap emails in the mutt inbox. > > I've been using mutt with Gmail for 10-15 years, and I just point mutt > at Gmail's IMAP server and leave all of the email on that server. > [That sounds like what you have now.] > > > [...] > > > I tried to configure mutt with imap settings. It is functionally > > working fine but each email is separately downloaded when I open it. > > Yep, that's how IMAP works. I guess I'm lucky that my network > connection is fast enough that it doesn't bother me. > > > I have configured cache so it doesn't happen everytime with the same > > email. My 2nd question is - is there a way to pre-fetch all the > > emails in inbox. > > I don't think so -- not without using something like offline-imap. > > -- > Grant > > > > > --