MailTrimFolderName
function MailTrimFolderName(const aFolder: string): string;
The spaces (U+0020 only) around aFolder and around each of its segments removed: ' Work . Sent ' -> 'Work.Sent'. A space there is more likely a keyboard error than a chosen name. Interior spaces, and every other character, are kept; a segment of spaces becomes empty.