I am trying to fetch all my email (yahoo) from yesterday using Get Email IMAP module. I made the connection ok because it retrieve some mails from my inbox.
Before this module, i created a set variable module which sets the date to my variable “yesterday“.
At the field From, in the IMAP module, i insert variable yesterday. Maximum number of results, i inserted value 70.
Problem is that if i run the scenario, it outputs just a few mails from yesterday and then starts outputting mails from 2 or 3 days before even though it didn’t displayed all mails from yesterday.
What should i do to fix this?
Welcome to the Make community!
Your email provider might be expecting a different date format. Perhaps remove the formatDate function, and just leave it as
{{addDays(now; -1)}}
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!
don’t know how this “From date“ field really works. It brings values from today, yesterday, and the day before yesterday even though i inserted the variable today (which is configured as you suggested).
I can put a filter after the module, but in this case i have to be careful when i run the scenario because it will take in consideration also the hour. With the formatDate function i didn’t had this issue with the hour, but at least now it fetches all emails from the day i want.
Thank you for the suggestion!