curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Looping though an IMAP-Folder, batch freezes

From: Axel Humcke <a.humcke_at_gewe.com>
Date: Wed, 6 Mar 2019 14:20:32 +0100

Hi,

sorry but i have no idea how to reply to the mailing list...

I am using curl version 7.64.0.

Beginning to think that this is a vba / wsh problem because as is said
before i can manually start the .bat-file but not with vba / wsh.

Now i have returned to start a batch for every single message. This
works but the flashing command prompt windows are not the elegant way...

Is there a way to loop through an IMAP-folder using UIDs or sequence
numbers with curl itself? Like this but with the windows command line?:

#!/bin/sh
# Dump the subject of the first ten messages in the folder.
for id in `seq 1 10` ; do
     echo "Message ${id}"
     curl --insecure \
         --url
"imaps://mail.example.com/People-Steve;UID=${id};SECTION=HEADER.FIELDS%20(SUBJECT)"
\
         --user "bobby:tables"
done

Kind regards,
Axel

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