The "True Sender Unmasker": Fix Masked Emails in Your Flow Instantly

If you use Google Groups or shared distribution lists to trigger your Zenphi flows, you have likely hit a frustrating wall: Email Masking.

You set up your flow to "Reply to Sender", but instead of emailing the customer, the system replies to your own group address (e.g., support@company.com). This happens because Google "masks" the sender to comply with security protocols, hiding the real person behind a generic "Via" address.

You could spend hours writing complex Regex patterns to hunt down the real email in the headers. Or, you could fix it in 30 seconds with our pre-built solution.

Meet the "True Sender Unmasker"

We have created a Zenphi Mini Flow that contains a specialized, pre-configured action. It acts as a universal adapter for your email triggers.

Why is this better than writing your own Regex?

Because it is dynamic.

  • If the email is Masked: It automatically digs through the hidden headers (X-Original-From, X-Original-Sender) to find the real person.

  • If the email is Direct: It detects that no masking happened and safely returns the standard "From" address.

How to Install & Use (3 Simple Steps)

We have packaged this solution as an exported Zenphi flow file (.json). You don't need to write a single line of code.

1. Download & Import

Download the attached JSON file. Open your Zenphi Designer and Import the file. This will open a simple flow containing the "Unmasker" action.

2. Copy the Action

Right-click the Unmasker action inside the imported flow and select Copy. Go to your own automation and Paste the action.

3. Configure the Inputs

The action is already set up; you just need to map your data to its two inputs:

  1. headersString: Map the Email Headers (e.g., from the Zenphi Mail trigger) here.

- This allows the script to scan for the hidden "Real Sender" data.

  1. fallbackEmail: Map the standard Sender Email here.

- This is your safety net. If the email wasn't masked (e.g., a direct client email), the action will just return this address.

The Result

Once configured, the action produces a single output. You can now use this variable whenever you need the correct customer email address.


Sender Unmasker _1770227146490.json