ftpserver.pl: Added SELECT check to IMAP FETCH and STORE handlers