Is there a way to programmatically iterate through all the flagged emails in the inbox as well as in the sentitems folders?