attachments storage sub folders

2023-06-04 Thread cor--- via dovecot
Hi all, we're using a separate attachment storage. Is there a way to control the subfolders that are created for each attachment? Currently the path is /XX/YY/XXYY. In practice this means almost every single attachment gets its own 2 subfolders XX/YY. I'm seeing users with 5000 attachments and

Re: Remove attachments

2023-06-04 Thread Tomas Habarta via dovecot
If you want to do that on Dovecot's side, look for sieve and vnd.dovecot.filter. See https://doc.dovecot.org/configuration_manual/sieve/plugins/extprograms/ and corresponding RFC for details. Doing that directly in Dovecot might not be the most effective way but depends on your needs... Anyway,