On Mon, May 02, 2011 at 12:03:46AM +0200, Jose M Vidal wrote: > I was happily using mutt with gmail-imap. > Then I decided to switch to offlineimap+msmtp, so I could still use > mutt offline, have a backup of all my e-mails and, hopefully, increase > mutt speed by working locally. > But, after having all installed an all my e-mails already downloaded > (10GB / 45.000 e-mails), every time I switch from INBOX to All Mail, > it takes 6 minutes (!) to refresh the index. > I had caché enabled with imap, and I am stilll keeping it in my .muttrc: > > set header_cache=~/.mutt/GMail/cache/headers¬ > set message_cachedir=~/.mutt/GMail/cache/bodies¬ > > But I am afraid cache only works with online imap, because now > accessing to folders is much-much slower than with previous online > configuration. > Is there anything I can do to speed-up my mutt? > Thanks in advanced, > > -- > jm > > PS: my mutt is 1.5.20
If your maildir is on an ecryptfs filesystem, the problem is the stat() call that mutt makes to check for changes in the maildir files. This is very slow on an ecryptfs filesystem because the header on every file must be decrypted for the stat() call. If you are certain that no other program might modify your mail files, you can unset maildir_header_cache_verify to bypass the stat() call. I use this for my large archive folders (which I also set read-only for safety) with a folder hook: folder-hook 'archive' 'push <toggle-write>; unset maildir_header_cache_verify' After I did this, access to my large folders became virtually instant. -- Scott Barker sc...@mostlylinux.ca Linux Consultant http://www.mostlylinux.ca/scott