mail icon indicating copy to clipboard operation
mail copied to clipboard

Add export button to sieve filter editor for providers without direct server access

Open DocSniper opened this issue 1 month ago โ€ข 1 comments

Is your feature request related to a problem? Please describe.

Many email providers (including mine) do not offer Sieve management through the standard port 4190, but instead only provide a web interface for filter configuration. This makes Nextcloud Mail's automatic Sieve server connection unusable for us.

While I can create and manage filters perfectly using Nextcloud Mail's excellent GUI, I cannot deploy these rules to my actual email server because there's no way to access the generated Sieve code. The "Sieve script editor" is unavailable when no Sieve server is configured.

The specific problem: I can create rules visually in Nextcloud Mail, but I cannot transfer them to my email provider's web interface because there's no way to export or view the generated Sieve source code.

Describe the solution you'd like

I would like a way to access the generated Sieve code from the "Create a new filter" dialog. Either of these two approaches would solve the problem perfectly:

  • Export button: Add an "Export" or "Save as" button next to the "Save" button that downloads the current rule as a .sieve text file
  • Copy-paste display: Show the generated Sieve code in a read-only text field within the dialog for direct copying

Both options would be even better. ๐Ÿ˜‰

Describe alternatives you've considered

Please refer to the solution description above, where I've already outlined two practical alternatives (export button or copy-paste display) that would solve this problem effectively.

All other alternatives I've considered, such as manual Sieve coding, switching providers, or using external tools, are significantly less practical for everyday use.

Additional context

I've already discussed this use case in issue #10655 where the maintainers suggested opening a separate feature request.

Many users face this limitation since numerous email providers only offer web-based Sieve management for security or simplicity reasons, while blocking direct port 4190 access.

This feature would make Nextcloud Mail's excellent filter editor accessible to a wider audience who currently cannot benefit from it due to provider restrictions.

DocSniper avatar Nov 27 '25 17:11 DocSniper

Itโ€™s quite niche, and I donโ€™t expect it to land on our roadmap anytime soon. I can see how this could work, but it would require adjustments in several parts of our code to replace the actual sieve connections with a dummy state.

The frontend is stateless, and all data (meta and sieve) is directly stored on the sieve server. The sieve rules are generated in the backend before writing them back to the sieve server, and thus, this requires a good amount of adjustments to make that work.

kesselb avatar Dec 02 '25 09:12 kesselb