ftpserver.pl: Added support for the IMAP CHECK command
tests: Added test for IMAP CHECK command