added handling of MSG files and fetching PDF if are available