Fix missing fclose(), thanks to Kevin Day
implement RFE 3239, 'Remove "Content-Disposition: attachment" from PGP/MIME signed messages'

modified version of the patch submitted by tdajd@6paq.com
If cur_folder is not NULL then the folder tree will have cur_folder as root
Fix to apply to new behavior of foldersel_set_tree. See 247a452