MailFolderToDir
function MailFolderToDir(const aFolder: string; out aDir: string): Boolean;
'Sent.2026' -> '.Sent.2026', with every segment checked by MailSafeFolderSegment after MailTrimFolderName. '' and 'INBOX' give '' (the maildir root itself). False when any segment fails the allowlist, and for a name of spaces alone, which is not taken for INBOX.