gmail.js icon indicating copy to clipboard operation
gmail.js copied to clipboard

How to get reply-to header?

Open diekaines opened this issue 5 years ago • 3 comments

Hi all. Thank you for this great library Is there a way to get the reply-to header content?

Thank you

diekaines avatar Apr 14 '20 16:04 diekaines

This library does not as much interact with the underlying email itself (and thus not with it's headers), but how that email is exposed via Gmail itself.

There might be a solution to your problem, but I don't know it from the top of my head. I suggest reading the documentation and exploring the API to see if you find anything which works for you.

josteink avatar Apr 15 '20 14:04 josteink

Hi @josteink ,

Any update on this? My use case is to filter out the no-reply emails and read the reply-to header instead.

mansi-clari avatar May 18 '22 08:05 mansi-clari

Like I said, this library is not really for those things, and works more in the UI layer of Gmail.

In theory you could extract the email MIME message itself, and the run that through a MIME-parser, to get the headers, but there's no direct way using GmailJS to get those header-values.

josteink avatar May 18 '22 10:05 josteink

This issue is old and has seen no activity in a year+. Closing.

josteink avatar Oct 12 '23 07:10 josteink