Is there an option to identify all other To, CC, and BCC messages?

smtp_server_rcpt_to event to collect all the RCPT_TO values. - how to group this RCPT_TO under a single message ?

I need to show all “cc” , “to”, and “bcc” in a message thread . that is my use case / taks

And that is the extent of my help. If you want to be more descriptive later let me know and I’ll review.

smtp_server_rcpt_to event to collect all the RCPT_TO values. - how to group this RCPT_TO under a single message ?

Iam realyy stuck related to this task to fetch bcc values . smtp_server_rcpt_to to collect all recepents , but not able to group this values under message thread

Well, now you are just asking us to do your homework for you.

Happy to do that for a fee.

We are a startup and currently have a limited budget.

Well, Message-Id

Message-Id has multiple receipients: To, Cc and BCC (not in the header list)

that’s how..

Extract recipients from smtp_server_rcpt_to event.
Group them by Message-Id to associate them with the same email.
Parse the To and Cc headers from the email content.

If a recipient appears in smtp_server_rcpt_to but not in To or Cc headers, they were BCC’d.

I think this answer is great. If it were me, I probably would also implement it according to this idea.