I\'m trying to import all outlook emails from a certain folder, pass each item to a pre-defined function, and collect the output in one csv file. My current code looks like