cURL / Mailing Lists / curl-users / Single Mail

curl-users

POP3 how to save attachment into the file

From: Petr Lázňovský <lazna_at_volny.cz>
Date: Sun, 16 Mar 2014 18:22:52 +0100

Using this command to retrieve single message from POP3 server, got me message header, text and than (probably BASE64) encoded attachment.

curl.exe -l -u user_at_host.com:password pop3://mainserver --request "RETR 3174"

Is there any switch to decode and save attachment or should I parse output and pipe file part to some decoder?

curl.exe --version
curl 7.35.0 (x86_64-pc-win32) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 WinIDN libssh2/1.4.3

thanks, L.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-16