Hello,
I am trying to create an extension that filters the mail by its sender and decides if the mail should or should not be sent to an external server to perform other tasks.
I created a mail handler before-queue as I need to filter local and remote mail (I cannot use before-local because I cannot send the mail to the external server in that point) and I get the mail but I am not able to get the envelope. I need the envelope because after processing the mail in the external server I need to return it with all its data.
The problem is that, as I imagine you already know, the envelope has certain data that the mail does not have, such as the BCC header.
Is there any way I can get the envelope or the whole mail?
Thank you all!!
I am trying to create an extension that filters the mail by its sender and decides if the mail should or should not be sent to an external server to perform other tasks.
I created a mail handler before-queue as I need to filter local and remote mail (I cannot use before-local because I cannot send the mail to the external server in that point) and I get the mail but I am not able to get the envelope. I need the envelope because after processing the mail in the external server I need to return it with all its data.
The problem is that, as I imagine you already know, the envelope has certain data that the mail does not have, such as the BCC header.
Is there any way I can get the envelope or the whole mail?
Thank you all!!