curl / Mailing Lists / curl-library / Single Mail

curl-library

Imap : Email Fetching

From: Himanshu Sagar via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 30 Dec 2018 20:44:19 +0530

Hi All,

Thank you for such a beautiful library. I intend to perform following steps
continuously with same:
1. Fetch all Unread emails
2. Process them
3. Mark them as read

I have looked at this link :
https://gist.github.com/jay/a43724c98220de85d020 and figured a way to get
UIDs of all unread email via search option and then fetch *individual*
emails one by one.
My objective is to do aforementioned things as fast as possible. I wonder
if following performance improvements are possible:
A. Fetch all unread emails in single go and NOT one by one.
B. Login only once and then look for new emails, so that i can save login
time.

-- 
Regards,
Himanshu Sagar

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-12-30