# Auto-label issued refunds

**Auto-Label Issued Refunds** is a Missive rule template designed for those in e-commerce and retail who have to process and keep track of refunds.

#### When enabled:

* The rule allows you to **automatically tag an email with a refund label** when you’ve sent out an email notifying the customer of their refund.

#### Here’s how it works:

* You need to determine a default sender of your refund emails.
* You need a consistent variable in your “refund issued” emails
* You need to check for attachments
* You need to create a **refunds** label

***

### Outgoing email rule: Auto-label issued refunds

This rule is meant to help you organize your e-commerce inbox a little more, without any extra manual steps.

<a href="https://mail.missiveapp.com/?importRule=auto-label-emails-for-issued-refunds_outgoing-message" class="button primary" data-icon="plus">Add to Missive</a>

#### There are three conditions and one action to make this rule work.

{% stepper %}
{% step %}
Each time an **email is sent from** your sales@ team, where it **contains a specific subject line** (Your refund has been approved), and there is **an attachment present**…
{% endstep %}

{% step %}
it will automatically **add the label** Refunds.
{% endstep %}
{% endstepper %}

<div data-with-frame="true"><figure><img src="https://3242897856-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1If7JwIQhfz5wGM9LiIU%2Fuploads%2FuDW01iIEKnL1iEfckdSZ%2Fautolabel-01.png?alt=media&#x26;token=d03c530d-5d7e-4fc5-b9f9-3c9021af3e17" alt=""><figcaption></figcaption></figure></div>

<table><thead><tr><th width="220.484375">Component</th><th>Value</th></tr></thead><tbody><tr><td>Condition 1</td><td><strong>From is</strong> → {...}</td></tr><tr><td>Condition 2</td><td><strong>Subject contains</strong> → Your refund has been approved</td></tr><tr><td>Condition 3</td><td><strong>Attachments name is</strong> → present</td></tr><tr><td>Action 1</td><td><strong>Add label(s)</strong> → Refunds</td></tr></tbody></table>
