Store UID of each mail and check if we already downloaded it before processing.