How-to · for whoever sets things up

Tagging rules

How mail sorts itself, and how to change what it does

Prepared for
Whoever sets CaseLoop up for your team
Prepared by
Eric Norman
Reading time
9 min

Overview

A rule reads incoming mail and attaches a tag. A folder collects everything carrying a tag. The referral queue is itself just mail carrying one particular tag. Once that chain is clear, most of what the mail page does becomes adjustable.

3 links
Rule → tag → folder. Everything follows from this
0 uploads
Rules run on this machine; no mail leaves it
1 preview
You always see what a rule would match before it does

Before you start

  • A connected mailbox with some mail synced, so a rule has something to match against.
  • Rules live under the Email page’s settings, on the Rules tab.

Each system you have connected brings its own set of rules, already written. Most agencies never write one — they turn off the packs they don’t run and add a rule or two for their own quirks.

The chain

Rule, tag, folder.

ThingWhat it is
RuleA standing question about a message — who it is from, what the subject contains — and the tag to attach when the answer is yes.
TagA label on a message. Tags are written by rules; nothing else creates one.
FolderA live collection of every message carrying one of its tags, plus anything pinned in by hand.

Folders are queries, not destinations

Binding a tag to a folder pulls in mail that already has it — including messages from years ago, not only what arrives next. That is why a new folder is useful immediately rather than filling up over the following month.

Starting from a message

The way most rules should be written.

Do not start on the Rules tab. Start on a message that is an example of the thing you want to catch.

01

Find a message that is typical

Open any message of the kind you want tagged — a referral, a court notice, a supervision reminder.

02

Tag messages like this…

From the message’s actions, this offers the things it could match on: From this sender, From anyone at this domain, Subject contains. Pick the one that describes the kind of mail rather than this particular message.

If the message has nothing distinctive to match on, CaseLoop says so rather than offering a rule that would catch everything.

03

Read the count before you commit

It counts what it would match across the mail you already have. That number is the whole safety mechanism — a rule meant for one social worker that matches four thousand messages is a rule you want to catch here, not after it has run.

04

Create it

Create rule saves it. From then on it runs on new mail automatically.

05

Apply it to mail you already have

A new rule tags what arrives next. Apply to existing mail runs it backwards over your history, which is usually what you want — a folder with nothing in it is hard to judge.

The Rules tab

Managing what already exists.

Rules are grouped by the program they came with. Each system you connect brings its own set — turn off any pack your agency does not run, rather than disabling its rules one at a time.

Per rule

  • Switch it on or off. A rule that is Turned off stops tagging; tags it has already written stay.
  • Apply to existing mail… runs it over your history.
  • A rule showing “on and has matched nothing yet” is doing nothing. Either your mail genuinely has none of that kind, or the rule is narrower than you thought.

Writing one from scratch

New rule on this tab, if you would rather start from the condition than from a message. The preview works the same way: it counts before it commits.

Tags and folders

The other two tabs.

Tags

Lists every tag in use. Unchecking one hides it from message rows on this device. It does not untag anything, and it does not change what folders collect — it is purely about visual noise on your own screen.

An empty Tags tab means no rules have matched anything yet. Tags only come from rules.

Folders

Create a folder and bind tags to it. CaseLoop proposes folders it can see would be useful, each with the count it would hold right now — which makes the decision obvious in a way a name never does.

Advanced

The raw rule format.

The Advanced tab has one switch worth knowing about: Show rule configuration adds Edit configuration to each rule’s menu, exposing the rule’s underlying definition.

The panel’s own warning is the right one: leave these alone unless you know the rule format. A malformed rule does not tag anything, and it will not tell you why in terms you can act on.

Troubleshooting

If something doesn't look quite right.

What you seeWhat to do
A rule is on and has matched nothing.Usually it is narrower than intended — a subject match on wording that varies, or a sender address that turns out to differ per message. Go back to a real example and use Tag messages like this… to see what it genuinely has in common.
A new rule tagged nothing even though you have matching mail.It only applies to mail that arrives after it. Use Apply to existing mail to run it over history.
A rule caught far too much.Turn it off — tags it already wrote stay, so nothing is destroyed — then rewrite it more narrowly from a real message and check the count before creating it.
Your folder is empty after adding a tag.Then nothing carries that tag yet. Check on the Rules tab whether the rule that writes it has ever matched.
A tag disappeared from message rows.Check the Tags tab — it is probably unchecked there. That hides it on this device only; the mail is still tagged and the folders still collect it.
Automated mail is not getting tagged.Expected. CaseLoop recognises machine-generated mail — no-reply notices, auto-replies, system digests — and holds it back from content rules and filing deliberately, so a notification cannot file itself to a family’s case.
A referral did not reach the referral queue.The queue is a tag. Find the message in Email and check whether it carries the referral tag — if not, that is a rule to widen, and the fix is on this screen.
You want to undo an Apply to existing mail.Turn the rule off and tell us what it tagged. Bulk untagging is not something we expose, because it is far easier to do damage with than to recover from.

Rules are worth twenty minutes once.

Most agencies write two or three, apply them to history, and never touch the screen again. The payoff is every folder and every queue in the product being about your work rather than ours.

Questions
eric@caseloop.co
Prepared by
Eric Norman
CaseLoop · Tagging rules Verified against 2.3.8 · 2026-09-21
CaseLoop · Tagging rulescaseloop.co/guides