imap: Removed the need for separate custom request functions

Moved the custom request processing into the LIST command as the logic
is the same.