Skip to main content
Version: SOGo 6

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​

  1. Click the three-dot menu (⋯) next to any folder (e.g., Inbox)
  2. Select New Folder or Add Folder
  3. Enter a name (e.g., "Projects", "Clients", "Archive")
  4. Click OK

Alternatively, click the + icon next to the folder list header.

Step 3: Create Nested Subfolders​

To organize further, create subfolders:

  1. Click the three-dot menu (⋯) next to a folder you created
  2. Select New Subfolder
  3. 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)
warning

Deleting a folder also deletes all messages inside it. Move important messages elsewhere first.

Part 2: Automatic Filters (Sieve)​

SOGo 6 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​

  1. Click the three-dot menu (⋯) (Settings) in the top toolbar
  2. Select Mail → Filters

Mail filters settings

Step 2: Create a New Filter​

Click Create filter.

Step 3: Define Conditions​

Choose when the filter should apply:

ConditionExample
From contains@example.com → all mail from that domain
Subject contains[Spam] → flag potential spam
To containsteam@company.com → mailing list messages
Size larger than5M → 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:

ActionUse Case
Move to folderSort into the right folder
Copy to folderKeep a copy in inbox + file in folder
Forward toSend to another address
Mark as readAuto-archive newsletters
Mark as flaggedHighlight important senders
DiscardDelete spam (use with caution)
Reject with messageBounce 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.

  1. Create the "Work" folder first (Part 1, Step 2)
  2. Open the filter settings → Create filter
  3. Condition: From contains @company.com
  4. Action: Move to folder → choose the "Work" folder
  5. Last action: Stop processing filter rules
  6. 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 6 supports full keyboard navigation for mail folders and filters.

ActionKeyboard ShortcutNotes
Navigate to MailTab to Mail, then Enter
Open folder managementThree-dot menu (⋯) next to folder
Create folderTab to the folder menu, Enter
Open filtersF or three-dot menu (⋯) → Filters
Create new filterCtrl+F or "+" button
Navigate filter conditionsTab between fields
Add actionA to add, D to delete action

Screen Reader Workflow​

Setting Up Mail Folders and Filters

Step 1: Navigate to Mail Module

  1. Tab to reach the sidebar
  2. Arrow keys to "Mail"
  3. Enter to open mail view

Step 2: Create Folder

  1. Click three-dot menu (⋯) next to mail account
  2. Tab to the folder menu and open it with Enter
  3. Type folder name
  4. Press Enter to create

Step 3: Open Filters

  1. Three-dot menu (⋯) settings
  2. Arrow to "Filters"
  3. Press Enter

Step 4: Create Filter

  1. Focus on "+" button or press Ctrl+F
  2. Type filter name
  3. Tab to condition dropdown
  4. Select condition (e.g., "From contains")
  5. Tab to value field, enter value
  6. Tab to actions, set action (e.g., "Move to folder")
  7. Tab to "Save" button, press Enter

Common Screen Reader Announcements:

AnnouncementMeaningAction
"Mail, tree view"Mail folder listNavigate folders
"New folder, button"Create folder actionPress Enter, type name
"Filters, dialog"Filter management openCreate new filter
"Condition, combo box"Filter condition dropdownArrow key to select
"Action, list grid"Available filter actionsArrow to select action
"Filter saved"SuccessFilter now active

Visual Content Descriptions​

folders-filters.png: This static screenshot shows creating mail folders and filters.

High Contrast Mode​

SOGo 6'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.