cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Enhancing POP3 to support extra commands

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 6 Dec 2011 15:11:53 -0800

On Tue, Dec 06, 2011 at 10:40:44PM +0000, Steve Holme wrote:
> Many thanks for the clarity but does that mean you could do:
>
> -Q 'DELE 5 6 7 8' to delete message 5, 6, 7 and 8 with a URL of
> pop3://mail.domain.com/5 ?

Yes, you could specify that, and curl would happily send that command,
but since that's an illegal POP-3 command (only one message number can
be given to DELE), the server would return an error code.

In this case, you'd probably want to specify '-Q -DELE 5' which would first
download the message and only then delete it.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-07