Function extractContactsFromEmails

  • Extracts contact information from a given email thread. The function uses a regular expression to match and extract the name and email of each contact in the thread. It ensures that no duplicate contacts are added to the result.

    Parameters

    • thread: string

      The email thread from which to extract contacts.

    Returns [string, string][]

    An array of tuples, where each tuple contains the name and email of a contact.

Generated using TypeDoc