Re: Gmail IMAP takes ages to login
On Thursday 30 May 2013 02:05:48 Patrick Shanahan wrote: * Patrick Shanahan ptilopt...@gmail.com [05-29-13 20:59]: Putting your cache(s) in temp dirs defeats the purpose of having a cache. Every time you reboot or your tmp is set to be cleared you will loose your cache(s) and they will have to be rebuilt and cause delay! /s/set/reset/ Sorry I don't understand ... I have created a ~/.mutt/tmp/ directory now, but this makes no odds in terms of performance. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: Gmail IMAP takes ages to login
* Mick michaelkintz...@gmail.com [05-30-13 08:21]: On Thursday 30 May 2013 02:05:48 Patrick Shanahan wrote: * Patrick Shanahan ptilopt...@gmail.com [05-29-13 20:59]: Putting your cache(s) in temp dirs defeats the purpose of having a cache. Every time you reboot or your tmp is set to be cleared you will loose your cache(s) and they will have to be rebuilt and cause delay! /s/set/reset/ Sorry I don't understand ... I have created a ~/.mutt/tmp/ directory now, but this makes no odds in terms of performance. You remarked about having cache files in /var/tmp and /tmp which are not permanent. The cache files need permanent residence or must be recreated causing delay. This may or may not be part of the delay you experience. I have my mail on a box which I can access from anywhere via ssh and read mail from there, downloading accounts to a single, central location and do not see *delays*. But I do have large mbox files and utilize caches to minimize delays when accessing those files. I do use imap from two google acc'ts but download the mail, fetchmail to procmail for delivery. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: Gmail IMAP takes ages to login
On Thursday 30 May 2013 13:38:36 Patrick Shanahan wrote: * Mick michaelkintz...@gmail.com [05-30-13 08:21]: On Thursday 30 May 2013 02:05:48 Patrick Shanahan wrote: /s/set/reset/ Sorry I don't understand ... I still don't understand what /s/set/reset/ means in this context, or how I am meant to apply it. :-/ I have created a ~/.mutt/tmp/ directory now, but this makes no odds in terms of performance. You remarked about having cache files in /var/tmp and /tmp which are not permanent. The cache files need permanent residence or must be recreated causing delay. This may or may not be part of the delay you experience. Ah! OK, my /vat/tmp/.mutt is permanent. Not deleted at each reboot. Adding the ~/.mutt/tmp/ made no odds (it would only be used for messages that I opened/modified/composed last time I ran mutt. I do use imap from two google acc'ts but download the mail, fetchmail to procmail for delivery. Yes, I'm fast coming to the same conclusion. Accessing really large IMAP mailboxen online is no fun. I thought that caching would make mutt at least as fast as Kmail, but it seems that this is not the case. :-( I'll give tokyo cabinet a try to see if it makes a difference. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: Gmail IMAP takes ages to login
On Thu, May 30, 2013 at 06:44:26AM +0100, Mick wrote: On Wednesday 29 May 2013 23:57:39 Andre Klärner wrote: On Wed 29.05.2013 15:03:27, Mick wrote: Hmm ... this is strange, because it doesn't. All it says is: /home/username/.mutt/gmail/.muttrc: unknown command did you miss a source before this line in your main config? Thanks Andre, this is the relevant entry in my ~/.muttrc: ## usernm...@gmail.com source /home/username/.mutt/gmail/.muttrc folder-hook $folder '/home/username/.mutt/gmail/.muttrc' Change this to: folder-hook $folder 'source /home/username/.mutt/gmail/.muttrc' Paul. -- Paul Hoffman nkui...@nkuitse.com
Re: Gmail IMAP takes ages to login
On Thu, May 30, 2013 at 08:53:11AM +0100, Mick wrote: On Thursday 30 May 2013 02:05:48 Patrick Shanahan wrote: * Patrick Shanahan ptilopt...@gmail.com [05-29-13 20:59]: Putting your cache(s) in temp dirs defeats the purpose of having a cache. Every time you reboot or your tmp is set to be cleared you will loose your cache(s) and they will have to be rebuilt and cause delay! /s/set/reset/ Sorry I don't understand ... s/xxx/yyy/ means Change xxx to yyy. Paul. -- Paul Hoffman nkui...@nkuitse.com
Re: Gmail IMAP takes ages to login
On Thursday 30 May 2013 14:30:32 Paul Hoffman wrote: On Thu, May 30, 2013 at 06:44:26AM +0100, Mick wrote: On Wednesday 29 May 2013 23:57:39 Andre Klärner wrote: On Wed 29.05.2013 15:03:27, Mick wrote: Hmm ... this is strange, because it doesn't. All it says is: /home/username/.mutt/gmail/.muttrc: unknown command did you miss a source before this line in your main config? Thanks Andre, this is the relevant entry in my ~/.muttrc: ## usernm...@gmail.com source /home/username/.mutt/gmail/.muttrc folder-hook $folder '/home/username/.mutt/gmail/.muttrc' Change this to: folder-hook $folder 'source /home/username/.mutt/gmail/.muttrc' Thanks Paul! That must have the cause of the 'unknown command' error. It's gone now. :-) -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: Gmail IMAP takes ages to login
On Tue, May 28, 2013 at 23:17:56 +0100, Mick wrote: ## usern...@account1.com source ~/.mutt/account1/.muttrc folder-hook $folder '~/.mutt/account1/.muttrc' ## usern...@gmail.com source ~/.mutt/gmail/.muttrc folder-hook $folder '~/.mutt/gmail/.muttrc' This doesn't answer your main question about loading speed, but on the topic of the /home/username/.mutt/gmail/.muttrc: unknown command error message you reported: The second argument to the folder-hook command is itself a full Mutt command, so I think in both those cases you need to include the word source: folder-hook $folder 'source ~/.mutt/gmail/.muttrc' Also, note that with this setup, you are actually running both ~/.mutt/account1/.muttrc and ~/.mutt/gmail/.muttrc when you first start up Mutt, followed but one or the other again as you open a particular folder. This could certainly work fine, but a cleaner way would be to avoid sourcing the scripts directly from ~/.muttrc, but instead only call them from the folder hooks. Finally, since those two scripts are configuring account-wide settings, I wonder if it would make sense to use account-hook instead of folder-hook. Nathan
Re: Gmail IMAP takes ages to login
On Thursday 30 May 2013 14:51:45 Nathan Stratton Treadway wrote: On Tue, May 28, 2013 at 23:17:56 +0100, Mick wrote: ## usern...@account1.com source ~/.mutt/account1/.muttrc folder-hook $folder '~/.mutt/account1/.muttrc' ## usern...@gmail.com source ~/.mutt/gmail/.muttrc folder-hook $folder '~/.mutt/gmail/.muttrc' This doesn't answer your main question about loading speed, but on the topic of the /home/username/.mutt/gmail/.muttrc: unknown command error message you reported: The second argument to the folder-hook command is itself a full Mutt command, so I think in both those cases you need to include the word source: folder-hook $folder 'source ~/.mutt/gmail/.muttrc' Thanks Nathan, this indeed was the cause of the unknown command error. It's fixed now. Also, note that with this setup, you are actually running both ~/.mutt/account1/.muttrc and ~/.mutt/gmail/.muttrc when you first start up Mutt, followed but one or the other again as you open a particular folder. I was trying to make mutt login in both accounts, but haven't worked out yet how to switch between the two. The sidebar only shows folders of gmail and the main viewing pane shows gmail's INBOX folder. This could certainly work fine, but a cleaner way would be to avoid sourcing the scripts directly from ~/.muttrc, but instead only call them from the folder hooks. OK, this shows my ignorance in getting mutt configured correctly - I used what I found on the wiki if I recall right. Is there some other example I could follow instead? Finally, since those two scripts are configuring account-wide settings, I wonder if it would make sense to use account-hook instead of folder-hook. I found this while googling: http://www.8t8.us/mutt/ but it only adds to my confusion as to which set up would be optimum for accessing multiple IMAP accounts. I would ideally like to be able to navigate the sidebar for descending into different mail accounts and their folders/subfolders, rather than launching different instances of mutt on different terminals like the URL above suggests. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: Gmail IMAP takes ages to login
On Tuesday 28 May 2013 23:49:48 Suvayu Ali wrote: Hi Mick, On Tue, May 28, 2013 at 11:17:56PM +0100, Mick wrote: set folder = imaps://imap.gmail.com:993 set spoolfile = imaps://imap.gmail.com:993/INBOX #set record = +INBOX/Sent Mail set record = +[Gmail]/Sent Mail #set postponed = +INBOX/Drafts set postponed = +[Gmail]/Drafts set trash = +[Gmail]/Bin set folder=imaps://imap.gmail.com:993 set spoolfile==INBOX set postponed==[Google Mail]/Drafts These are corresponding lines from my setup. Maybe setting the spoolfile as a relative path like mine helps? Also I'm not sure [Gmail] works, as you can see I have [Google Mail]/Drafts as postponed. Hope this helps, Thanks Ali, Using openssl s_client to login I can see this structure listed: . login usern...@gmail.com secret_passwd * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM- EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE ESEARCH . LIST * [snip ...] * LIST (\HasNoChildren) / INBOX * LIST (\HasNoChildren) / MRTG * LIST (\HasNoChildren) / Nagios * LIST (\HasNoChildren) / OpenSSL * LIST (\HasNoChildren) / RealVNC [snip ...] * LIST (\Noselect \HasChildren) / [Gmail] * LIST (\HasNoChildren \All) / [Gmail]/All Mail * LIST (\HasNoChildren \Trash) / [Gmail]/Bin * LIST (\HasNoChildren \Drafts) / [Gmail]/Drafts * LIST (\HasNoChildren \Important) / [Gmail]/Important * LIST (\HasNoChildren \Sent) / [Gmail]/Sent Mail * LIST (\HasNoChildren \Junk) / [Gmail]/Spam * LIST (\HasNoChildren \Flagged) / [Gmail]/Starred So I think that the syntax [Gmail]/Drafts is correct for my Gmail account. I editted my .muttrc like yours, replacing + with = infront of the folders: set postponed = =[Gmail]/Drafts to match yours, but still takes up to two minutes saying Evaluating cache... when I login and every time I change folder into INBOX or [Gmail]/All Maill, where the message count is large. Meanwhile, the Unknown command error every time mutt parses my ~/.mutt/gmail/.muttrc remains. :-( -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: Gmail IMAP takes ages to login
* Mick michaelkintz...@gmail.com: On Tuesday 28 May 2013 23:49:48 Suvayu Ali wrote: --8-- to match yours, but still takes up to two minutes saying Evaluating cache... when I login and every time I change folder into INBOX or [Gmail]/All Maill, where the message count is large. I delted your first mail, which IIRC contained some of your config. Did you enable caching? I have this: # Caching set header_cache=~/.mutt/.cache/ set tmpdir=~/.mutt/.tmp/ set message_cachedir=~/.mutt/.messages/ set message_cache_clean = no p@rick -- Patrick Ben Koetter p...@state-of-mind.de
Re: Gmail IMAP takes ages to login
On Wed, May 29, 2013 at 07:16:47AM +0100, Mick wrote: Meanwhile, the Unknown command error every time mutt parses my ~/.mutt/gmail/.muttrc remains. :-( It should show you line numbers. That should tell you where to start looking. Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: Gmail IMAP takes ages to login
Wed 29.May'13 at 8:46:48 +0200, Patrick Ben Koetter * Mick michaelkintz...@gmail.com: On Tuesday 28 May 2013 23:49:48 Suvayu Ali wrote: --8-- to match yours, but still takes up to two minutes saying Evaluating cache... when I login and every time I change folder into INBOX or [Gmail]/All Maill, where the message count is large. I delted your first mail, which IIRC contained some of your config. Did you enable caching? I have this: # Caching set header_cache=~/.mutt/.cache/ set tmpdir=~/.mutt/.tmp/ set message_cachedir=~/.mutt/.messages/ set message_cache_clean = no p@rick Using header caching and message caching with a mutt compiled using tokyocabinet will speed up the process. Jamie -- James Griffin: jmz at kontrol.kode5.net A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38
Re: Gmail IMAP takes ages to login
On Wednesday 29 May 2013 11:14:39 James Griffin wrote: Wed 29.May'13 at 8:46:48 +0200, Patrick Ben Koetter * Mick michaelkintz...@gmail.com: On Tuesday 28 May 2013 23:49:48 Suvayu Ali wrote: --8-- to match yours, but still takes up to two minutes saying Evaluating cache... when I login and every time I change folder into INBOX or [Gmail]/All Maill, where the message count is large. Using header caching and message caching with a mutt compiled using tokyocabinet will speed up the process. Thanks Jamie, would you know what is the difference between gdbm and tokyocabinet in real performance terms on mutt? This is what I have built mutt with: hcache backend: GDBM version 1.8.3. 10/15/2002 (built Dec 16 2010 21:38:04) I have seen this post which claims that on an imap server, the network latency is the bottleneck, rather than the comparative database performance. http://us.generation-nt.com/answer/bug-585559-mutt-tokyocabinet-slower-than-gdbm-help-198913431.html I have also tried accessing a different IMAP account hosted on a courier server, which has less than 200 messages on it and only INBOX plus two folders. It is really fast (a couple of seconds) compared to Gmail which takes minutes. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: Gmail IMAP takes ages to login
On Wednesday 29 May 2013 08:34:17 Suvayu Ali wrote: On Wed, May 29, 2013 at 07:16:47AM +0100, Mick wrote: Meanwhile, the Unknown command error every time mutt parses my ~/.mutt/gmail/.muttrc remains. :-( It should show you line numbers. That should tell you where to start looking. Hmm ... this is strange, because it doesn't. All it says is: /home/username/.mutt/gmail/.muttrc: unknown command but it continues straight away with trying to login into gmail. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: Gmail IMAP takes ages to login
On Wed 29.05.2013 15:03:27, Mick wrote: Hmm ... this is strange, because it doesn't. All it says is: /home/username/.mutt/gmail/.muttrc: unknown command did you miss a source before this line in your main config? Kind regards, Andre -- Andre Klärner smime.p7s Description: S/MIME cryptographic signature
Re: Gmail IMAP takes ages to login
* Mick michaelkintz...@gmail.com [05-29-13 08:00]: On Wednesday 29 May 2013 07:46:48 Patrick Ben Koetter wrote: I delted your first mail, which IIRC contained some of your config. Did you enable caching? I have this: # Caching set header_cache=~/.mutt/.cache/ set tmpdir=~/.mutt/.tmp/ set message_cachedir=~/.mutt/.messages/ set message_cache_clean = no Hi Patrick, here is my complete post: Different Patrick, but... Putting your cache(s) in temp dirs defeats the purpose of having a cache. Every time you reboot or your tmp is set to be cleared you will loose your cache(s) and they will have to be rebuilt and cause delay! -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: Gmail IMAP takes ages to login
* Patrick Shanahan ptilopt...@gmail.com [05-29-13 20:59]: * Mick michaelkintz...@gmail.com [05-29-13 08:00]: On Wednesday 29 May 2013 07:46:48 Patrick Ben Koetter wrote: I delted your first mail, which IIRC contained some of your config. Did you enable caching? I have this: # Caching set header_cache=~/.mutt/.cache/ set tmpdir=~/.mutt/.tmp/ set message_cachedir=~/.mutt/.messages/ set message_cache_clean = no Hi Patrick, here is my complete post: Different Patrick, but... Putting your cache(s) in temp dirs defeats the purpose of having a cache. Every time you reboot or your tmp is set to be cleared you will loose your cache(s) and they will have to be rebuilt and cause delay! /s/set/reset/ -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: Gmail IMAP takes ages to login
On Wednesday 29 May 2013 23:57:39 Andre Klärner wrote: On Wed 29.05.2013 15:03:27, Mick wrote: Hmm ... this is strange, because it doesn't. All it says is: /home/username/.mutt/gmail/.muttrc: unknown command did you miss a source before this line in your main config? Thanks Andre, this is the relevant entry in my ~/.muttrc: ## usernm...@gmail.com source /home/username/.mutt/gmail/.muttrc folder-hook $folder '/home/username/.mutt/gmail/.muttrc' -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: Gmail IMAP takes ages to login
Hi Mick, On Tue, May 28, 2013 at 11:17:56PM +0100, Mick wrote: set folder = imaps://imap.gmail.com:993 set spoolfile = imaps://imap.gmail.com:993/INBOX #set record = +INBOX/Sent Mail set record = +[Gmail]/Sent Mail #set postponed = +INBOX/Drafts set postponed = +[Gmail]/Drafts set trash = +[Gmail]/Bin set folder=imaps://imap.gmail.com:993 set spoolfile==INBOX set postponed==[Google Mail]/Drafts These are corresponding lines from my setup. Maybe setting the spoolfile as a relative path like mine helps? Also I'm not sure [Gmail] works, as you can see I have [Google Mail]/Drafts as postponed. Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: Gmail IMAP takes ages to login
On Tuesday 28 May 2013 23:52:08 Patrick Shanahan wrote: Install header cache Paka Are you referring to installing additional software, or mutt's configuration. If the latter, then perhaps you missed it in my original post? set header_cache = /var/tmp/.mutt/gmail/header_cache set message_cachedir = /var/tmp/.mutt/gmail/message_cache The cache seems to be full: $ ls -l /var/tmp/.mutt/gmail/header_cache/ total 4 drwx--S--- 5 michael mail 4096 May 28 23:11 imaps:usern...@gmail.com@imap.gmail.com:993 $ ls -l /var/tmp/.mutt/gmail/header_cache/imaps\:username\@gmail.com\@imap.gmail.com\:993/ total 109524 drwx--S--- 2 michael mail 4096 May 28 20:04 INBOX -rw--- 1 michael mail 112509890 May 28 23:12 INBOX.hcache -rw--- 1 michael mail 49152 May 28 20:03 MRTG.hcache -rw--- 1 michael mail 49152 May 28 20:03 Nagios.hcache -rw--- 1 michael mail 49152 May 28 20:03 OpenSSL.hcache -rw--- 1 michael mail 49152 May 28 20:03 RealVNC.hcache -rw--- 1 michael mail 49152 May 28 20:03 WiMAX.hcache drwx--S--- 2 michael mail 4096 May 28 20:03 [Gmail] [snip...] Not sure if individual *.hcache files should be rw by the mail group too. What is the convention with mutt? -- Regards, Mick signature.asc Description: This is a digitally signed message part.