# Fill customer fields via Postmaster Filter

**URL:** https://community.zammad.org/t/fill-customer-fields-via-postmaster-filter/10994
**Category:** Feature requests
**Created:** [February 24, 2023, 7:59am UTC](https://community.zammad.org/t/fill-customer-fields-via-postmaster-filter/10994 "2023-02-24T07:59:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Speedbomb](https://community.zammad.org/user_avatar/community.zammad.org/speedbomb/32/6862_2.png) [@Speedbomb](https://community.zammad.org/u/Speedbomb)
#### Post date: [February 24, 2023, 7:59am UTC](https://community.zammad.org/t/fill-customer-fields-via-postmaster-filter/10994/1 "2023-02-24T07:59:04Z")

</div>

Hi, since [apparently](https://community.zammad.org/t/how-to-extract-user-data-from-an-incoming-email/10960) it is not possible to **modify ticket customer data in Postmaster filters** , I’d like to request this feature.

**Why should this be useful for all Zammad users?**

For everyone who wants to offer a good support service it’s essential to keep an eye on the customers data, especially the contact data. When using email as single input channel for a Zammad system, there’s no possibility to do that (except manual administration) due to the fact that there is no _Customer_ object available in the Postmaster filters action area.

Also web forms that are only capable of sending emails could transfer detailed customer data in this way.

**What is to do?**

I’ll give you an example: We receive many emails from a **callcenter** that answers all our customers calls. They do some basic topic and data requests, make some basic presorting and finally send an email in a given format to an email address that is forwarded to our internal Zammad system.

A _simplified example_ mail code could look like this:

```plaintext
From: Nice Callcenter <no-reply@nicecalls.com>
Subject: New call 'Customer request about...', phone: +4912345678
To: callcenter@ourcompany.com
Reply-To: John Doe <john.doe@gmail.com>

Hello OurCompany team!

#firstname: John
#lastname: Doe
#email: john.doe@gmail.com
#phone: +4912345678
#customer_no: 9988552211

#text: Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam nonumy eirmod tempor invidunt ut labore et dolore magna.

```

The tickets customer seem to be accessible at the time of postmaster filtering, because the email and name in the _Reply-To_ header modify the ticket customer data.

So it seems we only need a **possibility to analyze the email fields by regex and fill the customer data with some substitutions** :

 ![feature_request](https://community.zammad.org/uploads/default/original/2X/b/b394830d1137bad45f9876217c72b214e3eb51c8.png)

Further proposals are welcome 🙂

---

<div class="post-metadata">

### Author: ![wucherpfennig](https://community.zammad.org/user_avatar/community.zammad.org/wucherpfennig/32/1604_2.png) [@wucherpfennig](https://community.zammad.org/u/wucherpfennig)
#### Post date: [February 24, 2023, 8:22am UTC](https://community.zammad.org/t/fill-customer-fields-via-postmaster-filter/10994/2 "2023-02-24T08:22:44Z")

</div>

You currently have to use the API. [Postmaster Filter use match value - #5 by wucherpfennig](https://community.zammad.org/t/postmaster-filter-use-match-value/2799/5)

It is cumbersome and adds a lot of overhead to obtain “basic” information but there is currently no other way.

---

<div class="post-metadata">

### Author: ![Speedbomb](https://community.zammad.org/user_avatar/community.zammad.org/speedbomb/32/6862_2.png) [@Speedbomb](https://community.zammad.org/u/Speedbomb)
#### Post date: [February 24, 2023, 9:19am UTC](https://community.zammad.org/t/fill-customer-fields-via-postmaster-filter/10994/3 "2023-02-24T09:19:41Z")

</div>

> [@wucherpfennig](#):
>
> You currently have to use the API

@wucherpfennig Yes, I know that. Unfortunately our Zammad system is not accessible from “outside”, so neither the callcenter nor web forms can use the API. That’s why I have requested this feature for usage in Postmaster filters. 🙂

---

<div class="post-metadata">

### Author: ![wucherpfennig](https://community.zammad.org/user_avatar/community.zammad.org/wucherpfennig/32/1604_2.png) [@wucherpfennig](https://community.zammad.org/u/wucherpfennig)
#### Post date: [February 24, 2023, 10:20am UTC](https://community.zammad.org/t/fill-customer-fields-via-postmaster-filter/10994/4 "2023-02-24T10:20:25Z")

</div>

👍🏻 TBH before we moved our instances outside of our intranet we had some custom php scripts doing basic operations like this: [GitHub - zammad/zammad-api-client-php: PHP API client for Zammad Helpdesk/Support system](https://github.com/zammad/zammad-api-client-php)
