Read last one hours mail

How to extract last one hour mail using IMAP activity?

Hi!

have a view on this thread

Regards,
NaNi

hey,
Unfortunately you have to get all unread emails and in if activity check which emails aren’t older then 1 hour. So you should get date from headers of emails and use cDate VB function to convert string to date.


cDate(item.Headers(“Date”)) < datetime.Now and cDate(item.Headers(“Date”)) > DateTime.Now.AddHours(-1)