phasmid - v0.0.1
    Preparing search index...

    Interface LocalPartRules

    The set of transformations that can be applied to the local part of an address. Both ProviderRule and DefaultRule share these fields so the engine can treat a matched provider and a fallback rule uniformly.

    interface LocalPartRules {
        lowercaseLocal?: boolean;
        removeDots?: boolean;
        subaddressSeparators?: string[];
    }

    Hierarchy (View Summary)

    Index
    lowercaseLocal?: boolean

    Lowercase the local part. Most consumer providers treat the local part case-insensitively, so this is enabled for the built-in providers. The email spec (RFC 5321) technically allows case-sensitive local parts, so it is left disabled for unknown domains by default.

    removeDots?: boolean

    Remove all dots (.) from the local part. This is Gmail's behavior: john.doe@gmail.com and johndoe@gmail.com are the same mailbox.

    subaddressSeparators?: string[]

    Characters that begin a "sub-address" (also called plus-addressing or tagging). Everything from the first occurrence of any separator to the end of the local part is stripped. Gmail/Outlook/etc. use "+"; Yahoo historically uses "-".

    A separator at index 0 is ignored, because stripping it would leave an empty local part.