On 2023-06-03, John Stoffel <j...@stoffel.org> wrote:
>>>>>> "Oliver" == Oliver Glas <oliver.g...@inss.ch> 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 -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to