From hom.sepanta at gmail.com Sun Mar 11 03:52:07 2012 From: hom.sepanta at gmail.com (Mostafa Razavi) Date: Sun, 11 Mar 2012 07:22:07 +0330 Subject: [clonsigna-devel] clonsigna and gmail Message-ID: <4F5C2167.6030905@gmail.com> Hi. Is clongsigna supposed to work with gmail imap server? I've wanted to use this code to see how many unread emails I have: (defvar *i* (clonsigna:make-imap :host "imap.gmail.com" :port 993 :ssl-p t)) (clonsigna:cmd-connect i) (clonsigna:cmd-login i "username" "password") (clonsigna:cmd-search i :criteria "UnSeen") But I get a "SERVER-ERROR Could not parse command" error on the last line. I tried putting a select command like this before cmd-search: (clonsigna:cmd-select i "inbox") which succeeded, but still no luck with the search. Am I doing something wrong? Thanks, Mostafa From kiuma72 at gmail.com Mon Mar 12 08:16:53 2012 From: kiuma72 at gmail.com (Andrea Chiumenti) Date: Mon, 12 Mar 2012 09:16:53 +0100 Subject: [clonsigna-devel] clonsigna and gmail In-Reply-To: <4F5C2167.6030905@gmail.com> References: <4F5C2167.6030905@gmail.com> Message-ID: Hi Mostafa, Thank you for pointing this problem with gmail, I've produced the following patch. http://common-lisp.net/gitweb?p=projects/clonsigna/clonsigna.git;a=commitdiff;h=0a6e693678aff084f0ac097e61a38e09cfd649cb;js=1 Summary is: some server like GMail don't allow more than one space between command arguments, the patch above fixes the problem. You can use clonsigna git version, or wait for the next version. Cheers, Andrea Chiumenti. 2012/3/11 Mostafa Razavi > Hi. Is clongsigna supposed to work with gmail imap server? I've wanted to > use this code to see how many unread emails I have: > > (defvar *i* (clonsigna:make-imap :host "imap.gmail.com" :port 993 :ssl-p > t)) > (clonsigna:cmd-connect i) > (clonsigna:cmd-login i "username" "password") > (clonsigna:cmd-search i :criteria "UnSeen") > > But I get a "SERVER-ERROR Could not parse command" error on the last line. > I tried putting a select command like this before cmd-search: > > (clonsigna:cmd-select i "inbox") > > which succeeded, but still no luck with the search. Am I doing something > wrong? > > Thanks, > Mostafa > > ______________________________**_________________ > clonsigna-devel mailing list > clonsigna-devel at common-lisp.**net > http://lists.common-lisp.net/**cgi-bin/mailman/listinfo/**clonsigna-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hom.sepanta at gmail.com Mon Mar 12 09:09:54 2012 From: hom.sepanta at gmail.com (Mostafa Razavi) Date: Mon, 12 Mar 2012 12:39:54 +0330 Subject: [clonsigna-devel] clonsigna and gmail In-Reply-To: References: <4F5C2167.6030905@gmail.com> Message-ID: <4F5DBD62.8000106@gmail.com> Excellent. I applied the patch and it works perfectly. Thank you. Mostafa On 03/12/2012 11:46 AM, Andrea Chiumenti wrote: > Hi Mostafa, > > Thank you for pointing this problem with gmail, I've produced the > following patch. > > http://common-lisp.net/gitweb?p=projects/clonsigna/clonsigna.git;a=commitdiff;h=0a6e693678aff084f0ac097e61a38e09cfd649cb;js=1 > > Summary is: > some server like GMail don't allow more than one space between command > arguments, the patch above fixes the problem. > > You can use clonsigna git version, or wait for the next version. > > Cheers, > Andrea Chiumenti. > > 2012/3/11 Mostafa Razavi > > > Hi. Is clongsigna supposed to work with gmail imap server? I've > wanted to use this code to see how many unread emails I have: > > (defvar *i* (clonsigna:make-imap :host "imap.gmail.com > " :port 993 :ssl-p t)) > (clonsigna:cmd-connect i) > (clonsigna:cmd-login i "username" "password") > (clonsigna:cmd-search i :criteria "UnSeen") > > But I get a "SERVER-ERROR Could not parse command" error on the > last line. I tried putting a select command like this before > cmd-search: > > (clonsigna:cmd-select i "inbox") > > which succeeded, but still no luck with the search. Am I doing > something wrong? > > Thanks, > Mostafa > > _______________________________________________ > clonsigna-devel mailing list > clonsigna-devel at common-lisp.net > > http://lists.common-lisp.net/cgi-bin/mailman/listinfo/clonsigna-devel > > -------------- next part -------------- An HTML attachment was scrubbed... URL: