eventTsmMailStore.OnCompareFolderName
property OnCompareFolderName: tMailCompareFolderNameEvent read fOnCompareFolderName write SetOnCompareFolderName;
Default: invariant ASCII lower-case equality over full names valid on the file system, except inside a modified UTF-7 run ('&' to '-'), whose case is significant. Invalid full names raise eMailStoreError before the handler is asked. Client CREATE names obey an independent portable allowlist (MailSafeFolderSegment). LIST prefix fragments are compared literally and need not be valid full names. There is no Unicode folding or normalization. ASCII case is ignored even on a case-sensitive POSIX file system. aSame is preloaded with that answer. INBOX is always case-insensitive and cannot alias another name (RFC 3501 sec.5.1). The handler must define a consistent equivalence: reflexive, symmetric, transitive and stable for the life of the store's data. Otherwise behaviour is undefined. Called on the requesting thread. Exceptions cancel the operation and propagate to the caller for logging. Memory-corruption exceptions fail the store permanently, log through every attached server, stop those services, notify OnFatalError, then end the process with code 70. An assigned comparison handler also decides path aliases; filesystem collisions remain protected. Prefix filters compare literal prefixes of equal length; the INBOX exception applies to the complete mailbox name only. Retained views and access references raise eMailStoreUnavailable after deactivation or destruction; sessions log and disconnect. This should occur only during shutdown.