Manage TO: field in Zoho Desk custom function (deluge script)

Manage TO: field in Zoho Desk custom function (deluge script)

Hello,
I need to manage TO: field on my deluge script.

I'm using a dozen of incoming mail addresses and I need to know what address the customer writes to (i.e. support@myaccount.zohodesk.eu or payments@myaccount.zohodesk.eu )

Currently I have created 1 rule for each support mail address, but I would use a single custom function / deluge scripts.

Could you help me?