getting sender address in rcpt hook plugin #3157
-
I'm trying to write a custom plugin in which I need to obtain both sender address and recipient address in haraka incoming mail. I'm using the swaks command to send a mail to my haraka server, so the -f attribute is a gmail account and the -t account is the haraka mail. And I'm using the usual code in the sample plugin to retrieve the recipient: I was browsing connection attributes and found this for the sender email, but I want to be sure this is a good practice and the right way to do it. Is this correct way to retrieve the sender email? could I face troubles down the road in production environments? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
that looks right to me. |
Beta Was this translation helpful? Give feedback.
that looks right to me.