• Splits a string of text into separate emails.

    The function works by splitting the input text into lines and then iterating over each line. If a line contains an email address and there are more than four lines in the current email, the current email is added to the list of emails and a new email is started. If a line contains a signature (determined by the presence of certain keywords), the line is not added to the current email.

    Parameters

    • text: string

      The string of text to split into separate emails.

    Returns string[]

    An array of strings, where each string is a separate email.

Generated using TypeDoc