In my case it was firewall. Script couldn't connect to server and download files.
How to get mail date in correct format
-
Search date: "Regular expressions" > "First match"
RegexpConstructor
Search date: "Regular expressions" > "First match"
RegexpConstructor