On 2023-06-03, John Stoffel <[email protected]> wrote: >>>>>> "Oliver" == Oliver Glas <[email protected]> writes: > >> I am looking for a way to remove attachments, based on a condition. >> Like attachments starting with "TimeReport" shall be removed, and >> then the mail should be delivered, with all other attachments. > > This is not a solution that dovecat can work with. You need to use a > milter in your mailserver (like postfix) which can strip out mime > attachements or do other modifications to an email before it's > delivered to the mailbox. > >> I did so far not find a solution to remove attachments. Do I need a >> plugin / extension ? If so, how to implement and use that ? > > milters are what you want. MIMEdefang is one.
You can also do this by calling altermime from sieve with the vnd.dovecot.filter extension from https://doc.dovecot.org/configuration_manual/sieve/plugins/extprograms/ _______________________________________________ dovecot mailing list -- [email protected] To unsubscribe send an email to [email protected]
