Re: Enhancing POP3 to support extra commands

2011-12-01 Thread Daniel Stenberg
On Fri, 2 Dec 2011, Graeme Gill wrote: Except there doesn't seem to be much consistency - witness the OPT_DIRLISTONLY flag rather than using the url. That option (in its original name CURLOPT_FTPLISTONLY) was added to libcurl back in ancient history before we had a more established way of doi

Re: Enhancing POP3 to support extra commands

2011-12-01 Thread Daniel Stenberg
On Thu, 1 Dec 2011, Rich Gray wrote: How about this instead: rather than embedding operations into the URL itself, why not use the "--quote" option, or even the "--request" option to specify them? That's analagous to how this would be done for HTTP, FTP and SFTP; to delete a file on those, yo

Re: Enhancing POP3 to support extra commands

2011-12-01 Thread Graeme Gill
Steve Holme wrote: > I think style wise this is in line with the rest of libcurl and how it > handles URLs (from the documentation I have written) but I would really > appreciate any input on this before continuing. Except there doesn't seem to be much consistency - witness the OPT_DIRLISTONLY fla

Using fopensocket instead of direct socket call

2011-12-01 Thread Gokhan Sengun
Hi, in function ftp_state_use_port(), direct call to socket() is used. However upon closing the socket fclosesocket function is used. It looks to me (if not missing something), it should check whether fopensocket is set and call this function if happens to be so. I would appreciate if somebody ha

Re: Enhancing POP3 to support extra commands

2011-12-01 Thread Rich Gray
Dan Fandrich wrote: On Thu, Dec 01, 2011 at 05:17:04PM +, Steve Holme wrote: I have done a little research and couldn't really find anything... except RFC2384: http://tools.ietf.org/html/rfc2384 This specifies a format for URL based connection strings (including authentication) for pop3 bu

Re: Enhancing POP3 to support extra commands

2011-12-01 Thread Dan Fandrich
On Thu, Dec 01, 2011 at 05:17:04PM +, Steve Holme wrote: > I have done a little research and couldn't really find anything... except > RFC2384: > > http://tools.ietf.org/html/rfc2384 > > This specifies a format for URL based connection strings (including > authentication) for pop3 but not mes

RE: FW: help: libCURL with epoll

2011-12-01 Thread Kopparapu, Sangeeta (GE Healthcare, consultant)
>> PFA image for the graph generated when I run profiler on my sample >> code. And also find my sample code. Is this expected flow? >You've now sent 5 emails recently with roughly the same text. I will just wait and see when you will stop and then I try to see if I can make sense from this. Plea

RE: Enhancing POP3 to support extra commands

2011-12-01 Thread Steve Holme
Hi Dan, > It makes sense, but surely some mailers out there already support a similar > POP3 syntax. It would be good to maintain some compatibility with existing > practise (assuming there is some) given that there doesn't seem to be an > official POP-3 URL syntax for such commands. Good idea.

Re: Enhancing POP3 to support extra commands

2011-12-01 Thread Dan Fandrich
On Thu, Dec 01, 2011 at 04:00:48PM +, Steve Holme wrote: > I think style wise this is in line with the rest of libcurl and how it > handles URLs (from the documentation I have written) but I would really > appreciate any input on this before continuing. It makes sense, but surely some mailers

Enhancing POP3 to support extra commands

2011-12-01 Thread Steve Holme
Dear all, As you are probably aware, the pop3 interface is currently rather limited in that it only supports the LIST and RETR commands. For example: pop3://mail.domain.com - LIST (all) pop3://mail.domain.com/3- LIST (single) for mail 3 when OPT_DIRLISTONL

RE: [PATCH] POP3: fixed escaped dot not being striped out

2011-12-01 Thread Steve Holme
Hi Daniel, > Excellent! I had a go at a similar approach but it turned out messy and so > complicated I had to ditch it. Your take looks much better than what I ended > up with. I'm glad you like it ;-) > I've now fixed and extended test case 815 and used that to verify your patch > and it perfo

issue with SMTP through HTTP proxy (using curl v 7.20.0)

2011-12-01 Thread Chandran, Naveen
Dear curl library users, I am trying to implement a minimal mailing mechanism using curl v7.20.0 and hence trying to connect to (and subsequently send mail) to an SMTP server through a HTTP proxy. Therefore, among the options (to curl_easy_setopt), I am using: * CURLOPT_PROXY (to talk t

Re: 10-at-a-time.c libcurl example - limitations?

2011-12-01 Thread Matthew Ford
On 1 Dec 2011, at 12:21, Michael Wood wrote: > On 1 December 2011 13:02, Matthew Ford wrote: >> Hi, >> >> I'm trying to build on the 10-at-a-time.c example code >> (http://curl.haxx.se/libcurl/c/10-at-a-time.html) to write a small utility >> that reads in a bunch of hostnames from a file and t

Re: [PATCH]: allow clients to set the name servers

2011-12-01 Thread Jason Glasgow
I ran into some problems with this patch because it never returns CURLE_OK when setting the DNS_SERVERS. I've attached a patch to fix this. -Jason On Thu, Nov 17, 2011 at 9:29 PM, Jason Glasgow wrote: > On Thu, Nov 17, 2011 at 4:59 PM, Daniel Stenberg wrote: > >> On Sun, 6 Nov 2011, Jason Gl

Re: PATCH: Handle DNS timeouts on multi-interfaces better

2011-12-01 Thread Jason Glasgow
Attached is an updated patch that deals with the fact that if the c-ares timeout is less than 1000us it gets rounded to zero, which when Curl_expire is called removes *all* timeouts. -Jason On Wed, Nov 30, 2011 at 5:11 PM, Jason Glasgow wrote: > Please hold off on evaluating this patch. I've b

Re: 10-at-a-time.c libcurl example - limitations?

2011-12-01 Thread Michael Wood
On 1 December 2011 13:02, Matthew Ford wrote: > Hi, > > I'm trying to build on the 10-at-a-time.c example code > (http://curl.haxx.se/libcurl/c/10-at-a-time.html) to write a small utility > that reads in a bunch of hostnames from a file and tries to connect to them > using the multi interface.

10-at-a-time.c libcurl example - limitations?

2011-12-01 Thread Matthew Ford
Hi, I'm trying to build on the 10-at-a-time.c example code (http://curl.haxx.se/libcurl/c/10-at-a-time.html) to write a small utility that reads in a bunch of hostnames from a file and tries to connect to them using the multi interface. I'm finding that this works fine up to a little over 1000

Re: [PATCH] POP3: fixed escaped dot not being striped out

2011-12-01 Thread Daniel Stenberg
On Wed, 30 Nov 2011, Steve Holme wrote: Please find attached a patch that corrects escaped full stop characters (dots) at the beginning of new lines. The patch is based around Daniel's reworking of the eob detection, however, rather than allocate new buffers and memcpy the content around I ha

Re: Progress function trigger time

2011-12-01 Thread Rob Ward
On 30 November 2011 23:04, Daniel Stenberg wrote: > On Wed, 30 Nov 2011, Rob Ward wrote: > > I would have thought that a time counter is an obvious solution however >> maybe using the curl time isn't? It may very well be suitable to add it >> directly into the Progress example, this would then a