curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Re: IMAP: Get multiple sections from email with one command

From: Axel Humcke <a.humcke_at_gewe.com>
Date: Tue, 12 Mar 2019 08:13:30 +0100

Of course, i thought sharing the link to the answer would be enough.

The solution from user diciu on Stack Overflow:

You have to add the two requests one after another, e.g.

curl --url
"imaps://imap.ionos.de/INBOX;UID=216;SECTION=HEADER.FIELDS%20(DATE)"
"imaps://imap.ionos.de/INBOX;UID=216;SECTION=TEXT" -u "user:password"

curl will issue the two commands on the same session, that is after
SELECT-ing the folder it will yield two FETCH commands.

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-03-12