Skip to main content

Import & Export Rules

Your rules are portable. You can export them to a JSON file as a backup or to share a setup, and import a file to bring rules back in.

Both live in the More menu on the Rules page.

Export your rules​

From the Rules page, open the More menu and choose Export Rules.

MailPrism downloads a JSON file named like email-rules-2026-06-15.json (today's date), containing your rules. System rules (such as the ones MailPrism creates for auto-responders) are left out.

What's in the file​

The export is plain, readable JSON:

FieldWhat it is
versionThe export format version
exportedAtWhen the file was created (timestamp)
rulesCountHow many rules are included
rulesThe list of rules

Each rule in the list keeps only the portable parts:

FieldWhat it is
nameThe rule's name
descriptionThe rule's description
enabledWhether the rule was on
conditionsThe full condition logic — see Conditions
actionsThe full action list — see Actions
stop_processingWhether the rule stops later rules from running
priorityThe rule's priority order
categoryThe rule's category (for example, general)
message_directionWhich mail the rule runs on — received, sent, or both (Run this rule on in the builder)
applies_toWhich Gmail accounts the rule covers — see Multi-account rules
gmail_account_idsThe specific accounts, when the rule isn't for all accounts
No server-owned data is exported

Rule IDs, your user account, per-rule timestamps, and execution history are not included (the file's own exportedAt stamp is the only timestamp). The only account-specific part is the optional account scope (gmail_account_ids) — see how import handles it below.

Import rules​

From the Rules page, open More → Import Rules and pick a JSON file (an export from MailPrism is the easiest starting point).

Limit / behaviorDetails
File sizeUp to 1 MB
Rules per fileUp to 100
ValidationEach rule is checked the same way the rule builder checks it. A rule that fails is skipped with a reason; the rest still import.
On or offImported rules always arrive disabled, so you can review them first.
PriorityImported rules are placed after your existing rules, keeping the order they had in the file.
Account scopeKept only if every account ID in the rule is one of your connected accounts. Otherwise the rule is reset to all accounts, and the result tells you.
Hand-edited files

A rule that includes server fields (such as id, user_id, or timestamps) or any key MailPrism doesn't recognize is rejected, with a message naming the problem. Remove those keys and import again.

After importing

Open each imported rule, check it with Testing rules, then turn it on.

→ Next: Rule Library · Best practices