Provides a utility subroutine for detecting the type of a given mail folder.