fix(watcher): handle wrapped Subject lines in forwarded emails
Update the parseForwardedHeader function to correctly join wrapped Subject lines before the To: line, ensuring accurate parsing of Gmail forwarded messages. Enhance tests to validate this behavior with Tokopedia email examples.
This commit is contained in:
@@ -359,7 +359,8 @@ Roby
|
||||
export const tokopediaMultiForwardedBody = `---------- Forwarded message ---------
|
||||
From: Tokopedia <noreply@tokopedia.com>
|
||||
Date: Fri, Aug 21, 2026 at 12:39 AM
|
||||
Subject: Pesanan Selesai: “sandal jepit ANDA pria casual...” dan 1 Item Lainnya
|
||||
Subject: Pesanan Selesai: “sandal jepit ANDA pria casual...” dan 1 Item
|
||||
Lainnya
|
||||
To: <nasyarobby@gmail.com>
|
||||
|
||||
Hai *Roby,*
|
||||
|
||||
Reference in New Issue
Block a user