Fix for the wrong else statement and better loging.

This fixes the wrong placement of the else statement to ensure all_mail is set. It also adds a logging statement to print the selected folder.