Mail Folders & Filters
Learn how to keep your inbox organized using folders and automatic message filters (Sieve scripts).
Part 1: Managing Folders
Step 1: Open the Mail Module
Click Mail in the sidebar. Your folders are listed on the left:
- Inbox — Received messages
- Sent — Messages you've sent
- Drafts — Unsaved messages
- Trash — Deleted messages
- Spam — Junk mail (if enabled)
Step 2: Create a New Folder
- Click the three-dot menu (⋯) next to any folder (e.g., Inbox)
- Select New Folder or Add Folder
- Enter a name (e.g., "Projects", "Clients", "Archive")
- Click OK
Alternatively, click the + icon next to the folder list header.
Step 3: Create Nested Subfolders
To organize further, create subfolders:
- Click the three-dot menu (⋯) next to a folder you created
- Select New Subfolder
- Name it (e.g., "Projects/Active", "Projects/Completed")
Result:
📁 Inbox
📁 Sent
📁 Projects
📁 Active
📁 Completed
📁 Clients
Step 4: Move Messages to Folders
Drag and drop: Click a message and drag it onto a folder
Three-dot menu (⋯): Click the three-dot menu (⋯) next to a message → Move to folder → select destination
Keyboard: Select messages, press V, then choose folder
Step 5: Rename or Delete a Folder
- Rename: Three-dot menu (⋯) next to folder → Rename
- Delete: Three-dot menu (⋯) next to folder → Delete (empties folder first)
Deleting a folder also deletes all messages inside it. Move important messages elsewhere first.
Part 2: Automatic Filters (Sieve)
SOGo 5 uses Sieve scripts for server-side mail filtering. Filters run when email arrives — before you see it in your inbox.
Step 1: Open Filter Settings
- Click the three-dot menu (⋯) (Settings) in the top toolbar
- Select Mail → Filters

Step 2: Create a New Filter
Click Create filter.
Step 3: Define Conditions
Choose when the filter should apply:
| Condition | Example |
|---|---|
| From contains | @example.com → all mail from that domain |
| Subject contains | [Spam] → flag potential spam |
| To contains | team@company.com → mailing list messages |
| Size larger than | 5M → large attachments |
You can combine multiple conditions:
- All conditions must match (AND)
- Any condition can match (OR)
Step 4: Define Actions
Choose what happens when conditions are met. Exact labels may vary slightly between versions — typical actions:
| Action | Use Case |
|---|---|
| Move to folder | Sort into the right folder |
| Copy to folder | Keep a copy in inbox + file in folder |
| Forward to | Send to another address |
| Mark as read | Auto-archive newsletters |
| Mark as flagged | Highlight important senders |
| Discard | Delete spam (use with caution) |
| Reject with message | Bounce unwanted email with a custom message |
Important: Messages are only actually moved if you add Stop processing filter rules as the last action.
Step 5: Set Filter Priority
Filters run in order from top to bottom. Drag filters to reorder them. The first matching filter's action is applied.
Step 6: Save the Filter
Click Save or Apply. The Sieve script is compiled and activated on the server immediately.
Example Filters
Example 1: Sort Work Emails
Goal: Move all email from @company.com into the "Work" folder.
- Create the "Work" folder first (Part 1, Step 2)
- Open the filter settings → Create filter
- Condition: From contains
@company.com - Action: Move to folder → choose the "Work" folder
- Last action: Stop processing filter rules
- Click Save
Example 2: Flag Urgent Messages
Condition: Subject contains "URGENT"
Action: Mark as flagged
Example 3: Archive Newsletters
Condition: From contains "newsletter@"
Action: Move to folder "Newsletters"
Troubleshooting
Filters not working
- Check that the filter's last action is Stop processing filter rules (see Step 4)
- Test with a simple filter first (e.g., move all mail from yourself)
- Whether Sieve is enabled (
SOGoSieveScriptsEnabled = YES), which Sieve server address is configured, and whether server logs show Sieve compilation errors is part of the server configuration — that is your IT administration's job. Ask your administrator if in doubt.
Folder not showing
- Log out and log back in
- Check that the folder was created (not accidentally named with slashes)
Conclusion
Folders and filters help you maintain a clean inbox without manual effort. Start with 2–3 filters for your most common email patterns.
Accessibility
Keyboard Navigation
SOGo 5 supports full keyboard navigation for mail folders and filters.
| Action | Keyboard Shortcut | Notes |
|---|---|---|
| Navigate to Mail | Tab to Mail, then Enter | |
| Open folder management | Three-dot menu (⋯) next to folder | |
| Create folder | Tab to the folder menu, Enter | |
| Open filters | F or three-dot menu (⋯) → Filters | |
| Create new filter | The + button | |
| Navigate filter conditions | Tab between fields | |
| Add action | A to add, D to delete action |
Screen Reader Workflow
Setting Up Mail Folders and Filters
Step 1: Navigate to Mail Module
Tabto reach the sidebar- Arrow keys to "Mail"
Enterto open mail view
Step 2: Create Folder
- Click three-dot menu (⋯) next to mail account
Tabto the folder menu and open it withEnter- Type folder name
- Press
Enterto create
Step 3: Open Filters
- Three-dot menu (⋯) settings
- Arrow to "Filters"
- Press
Enter
Step 4: Create Filter
- Tab to the + button, then press
Enter - Type filter name
- Tab to condition dropdown
- Select condition (e.g., "From contains")
- Tab to value field, enter value
- Tab to actions, set action (e.g., "Move to folder")
- Tab to "Save" button, press
Enter
Common Screen Reader Announcements:
| Announcement | Meaning | Action |
|---|---|---|
| "Mail, tree view" | Mail folder list | Navigate folders |
| "New folder, button" | Create folder action | Press Enter, type name |
| "Filters, dialog" | Filter management open | Create new filter |
| "Condition, combo box" | Filter condition dropdown | Arrow key to select |
| "Action, list grid" | Available filter actions | Arrow to select action |
| "Filter saved" | Success | Filter now active |
Visual Content Descriptions
folders-filters.png: This static screenshot shows creating mail folders and filters.
High Contrast Mode
SOGo 5's dark mode and high contrast mode work with all sections described above. Toggle via: three-dot menu (⋯) → General → Theme → Dark/High Contrast.
- Orientation: if you lose your place, press
Ctrl+Home(German keyboards:Strg+Pos1) to return to the top of the page and navigate from there.