Re: [courier-users] Problem at mail client.
On Fri, Feb 21, 2003 at 12:31:52AM +0530, mubashir.ahmed wrote: I am writing a proxy server for courier imap. It is still in the initial stage. I am getting a request from the mail client and i am passing it to the mail server (without any processing in between). and I am getting a response from the mail server and passing it to the mail client(without any processing in between). But during handshaking signals only iam getting problem. The mail client is not writing anything in the buffer and it is returning -1. I am enclosing the main part of the code and the output where it is getting struck.I printed the errno value that is also not set. Buy a copy of the superb book Unix Network Programming volume 1, by the late Richard Stevens (pub. Prentice Hall). Trust me, it is absolutely worth the money. Buy Advanced Programming in the Unix Environment at the same time, if you can afford it. Regards, Brian. --- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Problem at mail client.
Buy a copy of the superb book Unix Network Programming volume 1, by the late Richard Stevens (pub. Prentice Hall). Trust me, it is absolutely worth the money. Also, here are a couple of existing proxies which maybe you can modify to meet your needs: http://www.i2pi.com/smunge/ http://www.vergenet.net/linux/perdition/ --- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge ___ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] Problem at mail client.
Hi; I am writing a proxy server for courier imap. It is still in the initial stage. I am getting a request from the mail client and i am passing it to the mail server (without any processing in between). and I am gettinga response from the mail server and passing it to the mail client(without any processing in between). But during handshaking signals only iam getting problem. The mail client is not writing anything in the buffer and it is returning -1. I am enclosing the main part of the code and the output where it is getting struck.Iprinted the errno valuethat is also not set. If anybody has developed any proxy server for this imap. pls tell me what is going wrong. Thanking you Mubashir ahmed. // This is main part of the transaction. for (;;) { size = recv(serverSockDes, buf, sizeof buf, 0);send(newClientSockDes, buf, size, 0); buf[size] = '\0';oFileTrans buf;puts(buf); size = 0;size = recv(newClientSockDes, buf, sizeof buf, 0);if (size 0){perror ("Cannot get Any data from the client\n");exit (-1);}send(serverSockDes, buf, size, 0);buf[size] = '\0';puts(buf); } // This is the output and mail client is returning -1 at the last, after the server responds "+ entering idle mode" SERVER DATA* OK Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc. See COPYING for distribution information. CLIENT DATA002U CAPABILITY SERVER DATA* CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS 002U OK CAPABILITY completed CLIENT DATA002V LOGIN "cair" "eximsoftcair" SERVER DATA002V OK LOGIN Ok. CLIENT DATA002W IDLE SERVER DATA+ entering idle mode CLIENT DATADONE SERVER DATA002W OK IDLE completed CLIENT DATA002X STATUS "INBOX" (MESSAGES UNSEEN) SERVER DATA* STATUS "INBOX" (MESSAGES 11 UNSEEN 1) 002X OK STATUS Completed. CLIENT DATA002Y IDLE SERVER DATA+ entering idle mode CLIENT DATA // mail client is returning -1 here.