Filtering Notification Emails
Every notification Runner sends carries custom headers — X-NodePit-Runner-Notification-Reason, X-NodePit-Runner-Project-Id, and others listed in Notifications. Most desktop mail clients can filter on these directly, even though they aren't shown by default. This guide sets up a filter that moves all run-status emails into a dedicated folder, using Thunderbird, Outlook, and Apple Mail as examples.
Thunderbird
- Go to Tools → Message Filters and click New.
- Under if the following conditions are met, open the first dropdown and choose Customize….
- Add a new header named
X-NodePit-Runner-Notification-Reasonand select it from the condition dropdown. - Set the comparison to contains and enter
run-status. - Under Perform these actions, choose Move Message to and pick or create a folder.
- Save the filter. It applies to new mail from now on — use Run Filters Now on an existing folder to apply it retroactively.
Outlook
- Go to Home → Rules → Manage Rules & Alerts and click New Rule.
- Choose Apply rule on messages I receive and click Next.
- Check with specific words in the message header, then click the specific words link in the description pane.
- Enter
X-NodePit-Runner-Notification-Reason: run-statusand click Add, then OK. - Choose an action, such as move it to the specified folder, and finish the wizard.
Apple Mail
- Go to Mail → Settings… → Rules and click Add Rule.
- Name the rule, then open the first condition's dropdown and choose Other Header….
- Enter
X-NodePit-Runner-Notification-Reasonas the header name, set the comparison to Contains or Is equal to, and enterrun-statusas the value. - Under Perform the following actions, choose Move Message and select a mailbox.
- Click OK to save.
Going further
Combine headers for finer-grained routing — for example, a rule matching X-NodePit-Runner-Notification-Reason: run-status together with X-NodePit-Runner-Project-Id: <your-project-id> files run notifications per project instead of into one shared folder. Find a project's ID in its URL in the Runner web app.
If your mail client isn't listed here, check its documentation for filtering on a "custom header" or "message header" condition — the concept is the same, only the menu names differ. See Notifications for the full list of headers and when each is set.