[Imap-uw] c-client and smtp

2009-02-20 Thread Marian Sorin Nasoi
Hi, I am using c-client support in an application in order to create a simple SMTP client. I am testing the client with the following data: - SMTP server: smtp.gmail.com with TLS, port 587 I have done the following: - added "smtp.gmail.com:587/tls/user=gmail_username" in the SMTP hostlist - chang

Re: [Imap-uw] Optimize way to retreive UIDs?

2009-02-20 Thread Shawn Walker
Mark Crispin wrote: On Thu, 19 Feb 2009, Shawn Walker wrote: I have a situation that I need to get a list of UIDs in a range but I have no idea how many UIDs is in that range. I can't just request all of the UIDs in a range since there might be thousands of UIDs and I can't give the impression

Re: [Imap-uw] Optimize way to retreive UIDs?

2009-02-20 Thread Mark Crispin
On Fri, 20 Feb 2009, Shawn Walker wrote: Sheesh, how slow is the link? Not everybody has a fast link. Yes, but there is slow and there is slow; just as there is fast and there is fast. Algorithms which may be suitable for 300 bps are dreadful for 2G wireless (EDGE or 1x). Algorithms which

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Mark Crispin
On Fri, 20 Feb 2009, Marian Sorin Nasoi wrote: I get an error stating that: "TLS unavailable with this server:smtp.gmail.com" Is this a Windows machine? If so, the problem is almost certainly due to anti-virus software on your system that sets itself up as a man-in-the-middle for "outgoing ma

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Marian Sorin Nasoi
Thanks for the quick response, It is not a windows machine, it's Linux (no anti-virus or any other filtering in place). Any other suggestion? Thanks, Sorin On Fri, Feb 20, 2009 at 9:14 PM, Mark Crispin wrote: > On Fri, 20 Feb 2009, Marian Sorin Nasoi wrote: >> >> I get an error stating that:

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Marian Sorin Nasoi
Also everything works from Alpine (that uses UW IMAP) with the same settings so it can not be caused by filtering, right? On Fri, Feb 20, 2009 at 9:24 PM, Marian Sorin Nasoi wrote: > Thanks for the quick response, > > It is not a windows machine, it's Linux (no anti-virus or any other > filtering

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Mark Crispin
You will also get that error message if you built the c-client library without SSL/TLS support. I didn't mention that possibility because I thought that it would be obvious. On Fri, 20 Feb 2009, Marian Sorin Nasoi wrote: Thanks for the quick response, It is not a windows machine, it's Linux

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Mark Crispin
On Fri, 20 Feb 2009, Marian Sorin Nasoi wrote: Also everything works from Alpine (that uses UW IMAP) with the same settings so it can not be caused by filtering, right? Some of the anti-virus programs check for the name of the application and allow it through if it is one of the permitted name

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Marian Sorin Nasoi
I have built the library with ssl support (make slx IP6=4) that should set the SSLTYPE=nopwd' according to the build docs. wrt. the DNS suggestion the log shows the resolved IP ( [Trying IP address [72.14.221.111]] ) so everything fine as far as the name resolving goes. Just in case I tried to set

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Mark Crispin
I don't think that the Alpine code is going to help you. The problem is either environmental or is caused by something wrong that you are doing. Do you have the required #include "linkage.c" at the start of your application's main() function? Forgetting to do that is a common mistake.

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Marian Sorin Nasoi
I have only included "c-client.h" because I thought that was enough... Now I have added #include "linkage.c" at the start of your application's main() function I have added the #include "linkage.c" at the start of your application's main() function and I have to solve an error I get: "undefined

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Mark Crispin
On Fri, 20 Feb 2009, Marian Sorin Nasoi wrote: I have only included "c-client.h" because I thought that was enough... It isn't. You must do all the linkage I have added the #include "linkage.c" at the start of your application's main() function and I have to solve an error I get: "undefine

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Marian Sorin Nasoi
I am linking against c-client.a that is with the c-client sources, no RPM or other package from a third party because the application has to compile on Windows, Linux and also Mac OS. On Fri, Feb 20, 2009 at 10:21 PM, Mark Crispin wrote: > On Fri, 20 Feb 2009, Marian Sorin Nasoi wrote: >> >> I h

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Mark Crispin
mail_versioncheck() is in the c-client.a library (it's in mail.c) so you should not be getting an undefined by referencing it. What is the EXACT text of the error message? On Fri, 20 Feb 2009, Marian Sorin Nasoi wrote: I am linking against c-client.a that is with the c-client sources, no RPM

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Marian Sorin Nasoi
I get a linkage error: undefined reference to `mail_versioncheck' On Fri, Feb 20, 2009 at 10:27 PM, Mark Crispin wrote: > mail_versioncheck() is in the c-client.a library (it's in mail.c) so you > should not be getting an undefined by referencing it. What is the EXACT > text of the error message

Re: [Imap-uw] c-client and smtp

2009-02-20 Thread Mark Crispin
Is that the only linkage error that you are getting? If so, then you must be linking with an old version of c-client.a. mail_versioncheck() is definitely defined in mail.c. On Fri, 20 Feb 2009, Marian Sorin Nasoi wrote: I get a linkage error: undefined reference to `mail_versioncheck' On Fri