Skip to content

Commit

Permalink
feat: add extraction of addresses in the Reply-To header (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-sz committed Jun 14, 2024
1 parent 04f77ad commit 93dab9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export interface LetterparserMail {
to?: LetterparserMailbox[];
cc?: LetterparserMailbox[];
bcc?: LetterparserMailbox[];
replyTo?: LetterparserMailbox[];
date?: Date;
from?: LetterparserMailbox;
attachments?: LetterparserAttachment[];
Expand Down Expand Up @@ -157,6 +158,7 @@ export function extractMail(node: LetterparserNode): LetterparserMail {
mail.to = extractMailboxes(node.headers['To']);
mail.cc = extractMailboxes(node.headers['Cc']);
mail.bcc = extractMailboxes(node.headers['Bcc']);
mail.replyTo = extractMailboxes(node.headers['Reply-To']);
mail.from = node.headers['From']
? extractMailbox(node.headers['From'])
: undefined;
Expand Down

0 comments on commit 93dab9f

Please sign in to comment.