Home
Documentation
Workflow
Complete Workflow Guide
This comprehensive guide walks you through the entire Mail-Rulez workflow, from initial setup to full automation. Follow these steps to transform your email management from manual sorting to intelligent automation.
Workflow Overview
The Mail-Rulez workflow consists of six main phases:
Account Setup - Configure your email accounts
Startup Processing - Process existing emails in controlled batches
Training the System - Teach Mail-Rulez about your email patterns
List Management - Build and maintain sender lists
Rule Creation - Design custom processing rules
Maintenance Mode - Switch to automated continuous processing
Phase 1: Account Configuration
Before processing emails, you need to add your email accounts.
Adding Your First Account
Navigate to Accounts
Click "Accounts" in the main navigation
Click "Add Account" button
Screenshot: Add Account form
Enter Account Details
Email Address : Your full email address
Password : Your email password or app-specific password
IMAP Server : Select from dropdown or enter custom
IMAP Port : Usually 993 for SSL (auto-filled)
App-Specific Passwords
For enhanced security, many providers require app-specific passwords:
Test Connection
Click "Test Connection"
Wait for verification
Should show "Connection successful"
Screenshot: Account connection test success
Configure Folders
Mail-Rulez needs to know where to organize emails:
Processed : Where to move processed emails
Junk : Where to move spam/junk
Approved Ads : For commercial emails you want to keep
Pending : For emails requiring manual review
These folders will be created if they don't exist.
Save Account
Click "Save Account"
Account appears in the list
Screenshot: Accounts list with one configured account
Understanding Account Settings
Processing Mode : Start with "Startup" (we'll switch to Maintenance later)
Active : Toggle to enable/disable processing
Check Interval : How often to check for new emails (maintenance mode)
Phase 2: Starting with Startup Mode
Startup mode lets you process your existing emails in controlled batches.
Understanding Processing Modes
Screenshot: Mode selection interface
Startup Mode :
Processes emails in batches of 100
Gives you control over each batch
Ideal for initial inbox cleanup
Allows review and adjustment between batches
Maintenance Mode :
Runs automatically at intervals
Processes new emails as they arrive
For ongoing email management
Requires completed setup and training
Using the "Process Next 100" Button
Access the Dashboard
The dashboard shows your account in Startup mode
You'll see the prominent "Process Next 100" button
Screenshot: Process Next 100 button and progress
Process Your First Batch
Click "Process Next 100"
Mail-Rulez analyzes the next 100 emails
Processing typically takes 30-60 seconds
Review Batch Results
After processing, you'll see:
Processed : Emails moved to Processed folder
Whitelisted : Emails from trusted senders
Blacklisted : Emails blocked as spam
Vendor : Commercial emails organized
Pending Review : Emails needing your decision
Screenshot: Batch processing results
Examine the Email List
Click "View Details" to see what happened:
Each email shows its action
You can modify decisions if needed
Use this to train the system
Screenshot: Email list with processing actions
Continue Processing
Review the results
Make any necessary adjustments
Click "Process Next 100" again
Repeat until inbox is processed
Making Decisions During Startup
As you process batches, you're training Mail-Rulez:
Approve Decisions : Let Mail-Rulez learn from correct choices
Override Decisions : Move emails to different folders to correct
Create Rules : Identify patterns for custom rules
Update Lists : Add senders to appropriate lists
Phase 3: Training with Training Folders
Training folders help Mail-Rulez learn your preferences.
Understanding Training Folders
Mail-Rulez monitors special folders in your email client:
_whitelist : Trusted senders (always allow)
_blacklist : Blocked senders (always block)
_vendor : Commercial emails (organize separately)
Screenshot: Training folders in email client
Training Workflow
Create Training Folders
In your email client, create folders starting with underscore
_whitelist
, _blacklist
, _vendor
Mail-Rulez will detect these automatically
Screenshot: Training folder configuration
Manual Training Process
During daily email use:
Drag emails to appropriate training folders
Move trusted senders to _whitelist
Move spam to _blacklist
Move newsletters/ads to _vendor
Screenshot: Drag and drop to training folders
Process Training Folders
In Mail-Rulez:
Go to Lists → Training
Click "Process Training Folders"
Mail-Rulez learns from your choices
Emails are processed and lists updated
Verify Training Results
Check the summary of additions
Review updated lists
Training improves accuracy over time
Screenshot: Training results summary
Best Practices for Training
Be Consistent : Always move similar emails to the same folder
Train Regularly : Process training folders weekly
Start Broad : Use domains rather than specific addresses
Refine Over Time : Adjust as patterns emerge
Phase 4: Managing Lists
Lists are the foundation of Mail-Rulez's decision-making.
List Types and Purposes
Screenshot: Lists management interface
Whitelist
Trusted senders whose emails always get through
Family, friends, important services
Bypasses all other rules
Blacklist
Blocked senders whose emails are always junked
Persistent spammers
Unwanted marketing
Vendor List
Commercial senders you occasionally want
Newsletters, promotions, updates
Organized separately for easy review
List Management Operations
Adding Entries Manually
Single Entry
Click "Add Entry" on appropriate list
Enter email or domain
Choose match type (exact/domain/pattern)
Save entry
Screenshot: List editing interface
Bulk Import
Click "Bulk Import"
Paste multiple addresses (one per line)
Or upload CSV file
Review and confirm import
Screenshot: Bulk import dialog
Pattern Matching
Use patterns for flexible matching:
Exact : [email protected]
- matches only this address
Domain : @example.com
- matches all from domain
Subdomain : @*.example.com
- matches all subdomains
Pattern : *newsletter*
- matches addresses containing "newsletter"
Screenshot: Pattern matching examples
List Maintenance
Regular maintenance keeps lists effective:
Review Lists Monthly
Check for outdated entries
Remove redundant patterns
Consolidate similar entries
Export for Backup
Click "Export List"
Save as CSV
Keep versioned backups
Clean Duplicates
Use "Find Duplicates" tool
Merge similar entries
Optimize patterns
Phase 5: Creating Custom Rules
Rules provide fine-grained control over email processing.
Understanding the Rule Builder
Screenshot: Visual rule builder
The visual rule builder has three main sections:
Conditions : What to match
Actions : What to do
Options : Additional settings
Creating Your First Rule
Let's create a rule to handle receipts:
Click "Create Rule"
Give it a descriptive name: "Online Purchase Receipts"
Set priority (higher numbers run first)
Add Conditions
Click "Add Condition":
Field: "Subject"
Operator: "Contains"
Value: "receipt"
Add another:
Field: "From"
Operator: "Contains Any"
Value: "amazon,ebay,paypal"
Screenshot: Condition configuration
Set Actions
Click "Add Action":
Action: "Move to Folder"
Folder: "Receipts" (create if needed)
Optional:
Add Label: "Purchase"
Mark as Read: Yes
Screenshot: Action selection
Configure Options
Stop Processing : Check to prevent other rules
Enabled : Check to activate immediately
Apply to Existing : Process current emails
Test the Rule
Click "Test Rule"
Select sample emails
Preview what would happen
Adjust if needed
Screenshot: Rule testing interface
Advanced Rule Examples
Multi-Condition Rules (AND/OR Logic)
Example : Important project emails
Conditions (ALL must match):
From domain: @mycompany.com
Subject contains: "Project Alpha"
NOT from: [email protected]
Actions:
Screenshot: Complex rule example
Regular Expression Rules
Example : Invoice numbers
Condition:
Subject matches regex: Invoice #[0-9]{4,8}
Actions:
Move to: "Invoices"
Add label: "Accounting"
Screenshot: Regex pattern builder
Date-Based Rules
Example : Old newsletters
Conditions:
From list: Vendor List
Date older than: 30 days
Actions:
Rule Best Practices
Start Simple : Create basic rules first
Test Thoroughly : Always test before enabling
Order Matters : Higher priority rules run first
Use Stop Processing : Prevent rule conflicts
Document Complex Rules : Add descriptions
Monitoring Rule Performance
Check rule effectiveness:
Go to Rules → Statistics
View execution count per rule
Check average processing time
Identify rules that never match
Screenshot: Rule execution log
Phase 6: Transitioning to Maintenance Mode
Once your inbox is organized and rules are working well, switch to maintenance mode.
When to Switch
You're ready for maintenance mode when:
✓ Startup processing is complete
✓ Lists are well-populated
✓ Rules are tested and working
✓ Less than 5% of emails need manual sorting
Screenshot: Mode transition prompts
Making the Switch
Go to Account Settings
Click on your account
Find "Processing Mode"
Select Maintenance Mode
Change from "Startup" to "Maintenance"
Set check interval (15 minutes recommended)
Save changes
Configure Schedule
Maintenance mode runs automatically:
Check Interval : How often to check for new mail
Batch Size : Emails to process per run
Quiet Hours : Pause processing overnight
Screenshot: Processing schedule configuration
Maintenance Mode Operation
In maintenance mode, Mail-Rulez:
Checks for New Emails
Runs every 15 minutes (configurable)
Processes only unread emails
Applies rules automatically
Processes According to Rules
Evaluates each email against rules
Checks lists for sender matching
Takes configured actions
Logs All Activity
Records processing decisions
Tracks rule execution
Maintains audit trail
Screenshot: Maintenance mode dashboard
Monitoring Automated Processing
Keep an eye on the system:
Dashboard Overview
Shows emails processed today
Displays any errors
Indicates system health
Processing Logs
View recent processing runs
Check for skipped emails
Identify rule conflicts
Periodic Reviews
Weekly: Check pending folder
Monthly: Review processing stats
Quarterly: Audit rules and lists
Ongoing Best Practices
Daily Tasks
Check dashboard for any alerts
Review pending folder if needed
Process training folders when used
Weekly Tasks
Review processing statistics
Check for failed processing attempts
Update lists based on new senders
Process any training folders
Monthly Tasks
Audit rules for effectiveness
Clean up lists (remove duplicates)
Review and adjust retention policies
Backup configuration
Troubleshooting Common Issues
Emails Not Processing :
Check account is active
Verify credentials still valid
Review error logs
Test IMAP connection
Rules Not Matching :
Check rule conditions
Verify rule is enabled
Test with sample emails
Check rule priority
Performance Issues :
Reduce batch size
Increase check interval
Archive old emails
Optimize rules
Summary
You've now completed the full Mail-Rulez workflow:
✓ Configured email accounts
✓ Processed inbox with startup mode
✓ Trained the system with folders
✓ Built comprehensive lists
✓ Created custom rules
✓ Switched to maintenance mode
Your email is now being managed automatically! Continue with: