This project is read-only.

cannot select folder that has space in name

Dec 9, 2013 at 1:41 PM
Edited Dec 9, 2013 at 1:54 PM
hi there !
i was trying to select a folder in my gmail account. Everything was perfect but when i tried to select a folder that has space in its name (eg [Gmail]/Sent Mail), i got error :(

I searched the whole forum but i can't figure out :(. I read this https://higlabo.codeplex.com/discussions/399572 and I added property RequestEncoding = UTF8Encoding.UTF8 but nothing changed

I'm looking forward to seeing your reply !
Thanks a lot
Dec 10, 2013 at 12:34 AM
Hi.

I want to solve your problem.
Can you send me actual request response raw data.
You can get data below code.

SocketClient.TraceSource.Switch.Level = SourceLevels.All;
//Output to text file
StreamWriter sw = new StreamWriter("C:\TraceTest.txt");
sw.AutoFlush = true;
TextWriterTraceListener twtl = new TextWriterTraceListener(sw, "LogFile");
SocketClient.TraceSource.Listeners.Add(twtl);
//Out put to console window
ConsoleTraceListener ctl = new ConsoleTraceListener();
SocketClient.TraceSource.Listeners.Add(ctl);

regards.
Dec 11, 2013 at 2:46 PM
Hi higty !
Sorry for replying to you late
Here is what you need, maybe
HigLabo.Net.SocketClient Information: 0 : Client Send:tag1 LOGIN some-mail@gmail.com some-password

HigLabo.Net.SocketClient Information: 0 : Client Receive:* OK Gimap ready for requests from 115.77.11.9 qa2if626439icb.27
* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH
tag1 OK some-mail@gmail.com some-name authenticated (Success)

HigLabo.Net.SocketClient Information: 0 : Client Send:tag1 LIST "" "*"

HigLabo.Net.SocketClient Information: 0 : Client Receive:* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\HasChildren) "/" "Tam"
* LIST (\HasNoChildren) "/" "Tam/R"
* LIST (\Noselect \HasChildren) "/" "[Gmail]"
* LIST (\HasNoChildren \All) "/" "[Gmail]/All Mail"
* 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"
* LIST (\HasNoChildren \Trash) "/" "[Gmail]/Trash"
tag1 OK Success

HigLabo.Net.SocketClient Information: 0 : Client Send:tag1 Select [Gmail]/All Mail

HigLabo.Net.SocketClient Information: 0 : Client Receive:tag1 BAD Invalid Arguments
Once again, thanks !
Dec 12, 2013 at 1:57 AM
I found out that we must quote by \"My Folder\" when including white space.

I fixed it and upload new version.
Please check it out!
Dec 12, 2013 at 6:06 PM
Yay, it works again !!!
Thanks higty !