made $sent_folder global so that the 'from' column would now be named 'to'