The Wayback Machine - https://web.archive.org/web/20170630124908/http://www.advogato.org/person/mones/diary/36.html

25 Oct 2007 mones   ยป (Journeyer)

Claws with new Gmail IMAP

Yesterday, after reading new Gmail IMAP availability discovered one of my accounts had been IMAP-blessed by the Gmail fortune god. I activated it inmediately, wondering how well it would play with Claws Mail.
Now my wonders are answered. A quick review:

Connection went all right. Thanks the quick IMAP setup page for other clients offered in Gmail's help configuring a new account in Claws Mail is a matter of seconds. The dialog of the initial contact follows:

[07:14:31] IMAP4< * OK Gimap ready for requests from 83.97.220.22 c25if573683ika 
* IMAP connection is un-authenticated
[07:14:42] IMAP4> 1 CAPABILITY 
[07:14:42] IMAP4< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA XYZZY 
[07:14:42] IMAP4< 1 OK Thats all she wrote! c25if573683ika 
[07:14:42] IMAP4> Logging monesz@gmail.com to imap.gmail.com using LOGIN
[07:14:46] IMAP4< Login to imap.gmail.com successful
[07:14:46] IMAP4> 3 LIST "" "" 
[07:14:46] IMAP4< * LIST (\Noselect) "/" "/" 
[07:14:46] IMAP4< 3 OK Success 
[07:14:46] IMAP4> 4 LSUB "" "%" 
[07:14:46] IMAP4< * LSUB () "/" "INBOX" 
[07:14:46] IMAP4< * LSUB (\Noselect) "/" "[Gmail]" 
[07:14:46] IMAP4< 4 OK Success 
[07:14:46] IMAP4> 5 LSUB "" "INBOX/%" 
[07:14:46] IMAP4< 5 OK Success 
[07:14:46] IMAP4> 6 LSUB "" "[Gmail]/%" 
[07:14:47] IMAP4< * LSUB () "/" "[Gmail]/All Mail" 
[07:14:47] IMAP4< * LSUB () "/" "[Gmail]/Drafts" 
[07:14:47] IMAP4< * LSUB () "/" "[Gmail]/Sent Mail" 
[07:14:47] IMAP4< * LSUB () "/" "[Gmail]/Spam" 
[07:14:47] IMAP4< * LSUB () "/" "[Gmail]/Starred" 
[07:14:47] IMAP4< * LSUB () "/" "[Gmail]/Trash" 
[07:14:47] IMAP4< 6 OK Success 
[07:14:47] IMAP4> 7 LSUB "" "[Gmail]/All Mail/%" 
[07:14:47] IMAP4< 7 OK Success 
[07:14:47] IMAP4> 8 LSUB "" "[Gmail]/Drafts/%" 
[07:14:47] IMAP4< 8 OK Success 
[07:14:47] IMAP4> 9 LSUB "" "[Gmail]/Sent Mail/%" 
[07:14:47] IMAP4< 9 OK Success 
[07:14:47] IMAP4> 10 LSUB "" "[Gmail]/Spam/%" 
[07:14:48] IMAP4< 10 OK Success 
[07:14:48] IMAP4> 11 LSUB "" "[Gmail]/Starred/%" 
[07:14:48] IMAP4< 11 OK Success 
[07:14:48] IMAP4> 12 LSUB "" "[Gmail]/Trash/%" 
[07:14:48] IMAP4< 12 OK Success 


Access: notice the folders the Gmail servers seems to provide under [Gmail]. These have the following appearance under Claws folder tree, right after setting up:


These folders seems to reflect Gmail's left menu folders, though they happen to be unaccesible with Claws:
[07:15:52] IMAP4> 30 STATUS "[Gmail]/All Mail" (MESSAGES UIDNEXT UIDVALIDITY UNSEEN) 
[07:15:54] IMAP4< * STATUS [Gmail]/All Mail (MESSAGES 18 UIDNEXT 167 UIDVALIDITY 1 UNSEEN 1) 
[07:15:54] IMAP4< 30 OK Success 
[07:15:54] IMAP4> 31 SELECT "[Gmail]/All Mail" 
** can't select folder: [Gmail]/All Mail
[07:16:00] IMAP4> 32 STATUS "[Gmail]/All Mail" (MESSAGES UIDNEXT UIDVALIDITY UNSEEN) 
[07:16:00] IMAP4< * FLAGS (\Answered \Flagged \Draft \Deleted \Seen \*) 
[07:16:00] IMAP4< * OK [PERMANENTFLAGS (\Flagged \Draft \Deleted \Seen \*)] 
[07:16:00] IMAP4< * OK [UIDVALIDITY 1] 
[07:16:00] IMAP4< * 18 EXISTS 
[07:16:00] IMAP4< * 0 RECENT 
[07:16:00] IMAP4< * OK [UNSEEN 1] 
[07:16:00] IMAP4< * OK [UIDNEXT 167] 
[07:16:00] IMAP4< 31 OK [READ-WRITE] [Gmail]/All Mail selected. (Success) 
[07:16:00] IMAP4> 33 STATUS "[Gmail]/Drafts" (MESSAGES UIDNEXT UIDVALIDITY UNSEEN) 
[07:16:00] IMAP4< * STATUS [Gmail]/All Mail (MESSAGES 18 UIDNEXT 167 UIDVALIDITY 1 UNSEEN 1) 
[07:16:00] IMAP4< 32 OK Success 
[07:16:00] IMAP4> 34 SELECT "[Gmail]/Drafts" 
** can't select folder: [Gmail]/Drafts
[07:16:01] IMAP4> 35 STATUS "[Gmail]/Drafts" (MESSAGES UIDNEXT UIDVALIDITY UNSEEN) 
[07:16:01] IMAP4< * STATUS [Gmail]/Drafts (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 18 UNSEEN 0) 
[07:16:01] IMAP4< 33 OK Success 
[07:16:01] IMAP4> 36 STATUS "[Gmail]/Sent Mail" (MESSAGES UIDNEXT UIDVALIDITY UNSEEN) 
[07:16:01] IMAP4< * FLAGS (\Answered \Flagged \Draft \Deleted \Seen \*) 
[07:16:01] IMAP4< * OK [PERMANENTFLAGS (\Flagged \Draft \Deleted \Seen \*)] 
[07:16:01] IMAP4< * OK [UIDVALIDITY 18] 
[07:16:01] IMAP4< * 0 EXISTS 
[07:16:01] IMAP4< * 0 RECENT 
[07:16:01] IMAP4< * OK [UNSEEN 0] 
[07:16:01] IMAP4< * OK [UIDNEXT 1] 
[07:16:01] IMAP4< 34 OK [READ-WRITE] [Gmail]/Drafts selected. (Success) 
[07:16:01] IMAP4> 37 SELECT "[Gmail]/Sent Mail" 

This is just a part of the log, the remaining folders went the same way.

On the other side the INBOX folder works fine and has the (3) mails expected according the web interface:
[07:18:31] IMAP4> 5 STATUS INBOX (MESSAGES UIDNEXT UIDVALIDITY UNSEEN) 
[07:18:31] IMAP4< * STATUS INBOX (MESSAGES 3 UIDNEXT 19 UIDVALIDITY 2 UNSEEN 0) 
[07:18:31] IMAP4< 5 OK Success 
[07:18:31] IMAP4> 6 SELECT INBOX 
[07:18:32] IMAP4< * FLAGS (\Answered \Flagged \Draft \Deleted \Seen \*) 
[07:18:32] IMAP4< * OK [PERMANENTFLAGS (\Flagged \Draft \Deleted \Seen \*)] 
[07:18:32] IMAP4< * OK [UIDVALIDITY 2] 
[07:18:32] IMAP4< * 3 EXISTS 
[07:18:32] IMAP4< * 0 RECENT 
[07:18:32] IMAP4< * OK [UNSEEN 0] 
[07:18:32] IMAP4< * OK [UIDNEXT 19] 
[07:18:32] IMAP4< 6 OK [READ-WRITE] INBOX selected. (Success) 
[07:18:32] IMAP4- [fetching UIDs...]
[07:18:32] IMAP4> 7 UID FETCH 1:* (UID) 
[07:18:32] IMAP4< * 1 FETCH (UID 1) 
[07:18:32] IMAP4< * 2 FETCH (UID 2) 
[07:18:32] IMAP4< * 3 FETCH (UID 3) 
[07:18:32] IMAP4< 7 OK Success 
[07:18:32] IMAP4> 8 UID FETCH 1:3 (UID FLAGS RFC822.SIZE BODY.PEEK[HEADER.FIELDS (Date From To Cc Subject Message-ID References In-Reply-To)]) 
[07:18:32] IMAP4< [FETCH data - 1024 bytes]
[07:18:32] IMAP4< [FETCH data - 302 bytes]
[07:18:32] IMAP4- [fetching flags...]
[07:18:32] IMAP4> 9 UID FETCH 1:* (FLAGS UID) 
[07:18:33] IMAP4< * 1 FETCH (UID 1 FLAGS (\Seen)) 
[07:18:33] IMAP4< * 2 FETCH (UID 2 FLAGS (\Seen)) 
[07:18:33] IMAP4< * 3 FETCH (UID 3 FLAGS (\Seen)) 
[07:18:33] IMAP4< 9 OK Success 


General impression: lacking features like subscription, but seems faster downloading. Slow response on logons, it takes several seconds to get response when leaving the folder. Some re-connections seen, which is not good for a five minutes test I guess.

And that's all for now... :-)

Syndicated 2007-10-25 06:10:45 from Ricardo Mones

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!