• Parses the raw email message (headers + body).

    Parameters

    • rawData: string | Readable

      Raw IMF email (string or stream)

    Returns Promise<{ body: string; headers: Record<string, string | string[]> }>

    Parsed email components