Cleanbox
Features Blog Pricing Developers
Sign in Start free trial

Filter components and match types reference

Every filter rule in Cleanbox has three parts: a component (what to check), an operator (how to compare), and a value (what to match against). This article is a reference for all available components and operators.

Components

ComponentWhat it checksExample value
From (address)The sender's email addressnewsletter@shop.com
From (name)The sender's display nameAmazon Support
Sender (both)Display name and email address combinedAmazon Support <newsletter@shop.com>
SubjectThe email subject lineYour order has shipped
BodyThe email body content (plain text)click here to unsubscribe
PropertyEmail characteristics like attachments, newsletter, reply, etc.newsletter, attachments, encrypted
HeaderCheck if a specific email header existsList-Unsubscribe, X-Priority
CategoryThe sender's contact categoryShopping, Social Networks
Spam scoreThe numeric spam score assigned by the scanner (0 if unavailable)5, 8.5
Spam symbolA specific spam indicator name from the symbol referenceZERO_FONT, BAYES_SPAM

Operators

Not every operator works with every component. Text-based components (from, subject, body) support all text operators. Property and category use is / is not. Spam score uses greater than / less than.

OperatorBehaviorWorks with
containsValue appears anywhere in the fieldFrom, Subject, Body, Sender, Header
does not containValue does not appear in the fieldFrom, Subject, Body, Sender, Header
equalsExact match (case-insensitive)From, Subject, Category, Spam symbol
does not equalValue is not an exact matchFrom, Subject, Category, Spam symbol
starts withField begins with valueFrom, Subject, Body, Sender
ends withField ends with valueFrom, Subject, Body, Sender
matches (regex)Regular expression pattern matchFrom, Subject, Body, Sender
existsThe header is present in the emailHeader
not existsThe header is absentHeader
isProperty or category matches the selected valueProperty, Category
is notProperty or category does not matchProperty, Category
greater thanNumeric value exceeds thresholdSpam score
less thanNumeric value is below thresholdSpam score

Properties available

When using the Property component with the is / is not operator, you can match on these message properties:

PropertyMeaning
Multi-senderSent to multiple recipients
CCYou were CC'd
BCCYou were BCC'd
ReplyReply to a previous message
ForwardedMessage was forwarded
NewsletterHas List-Unsubscribe header
AttachmentsContains attachments
EncryptedPGP or S/MIME encrypted
CalendarContains calendar invite
Read confirmationSender requested a read receipt
High priorityMarked as high priority by sender
AutomatedAuto-generated message

Practical examples

GoalComponentOperatorValueAction
Block a domainFrom (address)ends with@spammer.comDeny
Sort newslettersPropertyisNewsletterAllow → folder "Newsletters"
Flag calendar invitesPropertyisCalendarAllow → mark flagged
Block zero-font spamSpam symbolequalsZERO_FONTDeny
Reject high spam scoresSpam scoregreater than8Deny
Sort shopping receiptsCategoryisShoppingAllow → folder "Receipts"

For combining multiple conditions, see Advanced filtering: combining conditions and groups. To test filters before activating, see Testing and reordering your filters.