curl / Mailing Lists / curl-library / Single Mail


Imap : Email Fetching

From: Himanshu Sagar via curl-library <>
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 : 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

Himanshu Sagar

Received on 2018-12-30