curl / Mailing Lists / curl-users / Single Mail

curl-users

IMAP: Get multiple sections from email with one command

From: Axel Humcke <a.humcke_at_gewe.com>
Date: Thu, 7 Mar 2019 14:04:11 +0100

Hi,

i know how to get multiple parts of an email header like this:
[code]curl --url
"imaps://imap.ionos.de/INBOX;UID=216;SECTION=HEADER.FIELDS%20(DATE%20FROM%20TO%20SUBJECT)"
-u "user:passwortd"[\code]

But is it possible to get multiple sections (received date and text in
my case)? I want to combine these two commands:
[code]curl --url
"imaps://imap.ionos.de/INBOX;UID=216;SECTION=HEADER.FIELDS%20(DATE)" -u
"user:passwortd"[\code]
[code]curl --url "imaps://imap.ionos.de/INBOX;UID=216;SECTION=TEXT" -u
"user:passwortd"[\code]

I tried something like this:
[code]curl --url
"imaps://imap.ionos.de/INBOX;UID=216;SECTION=HEADER.FIELDS%20(DATE);SECTION=TEXT"
-u "user:passwortd"[\code]

Kind regards,
Axel

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