On Fri, May 26, 2023 at 01:05:09PM +0200, Paul Menzel via Postfix-users wrote:
> > This behaviour is to be expected given the incorrect MIME structure > > of the message. It is: > > > > multipart/alternative > > text/plain > > multipart/mixed > > text/html > > attachment Note that sometimes the "attachment" in question is specifically related to the HTML part (an image referenced from the HTML or similar). And though in principle the enclosing multipart should then be a "multipart/related", I suspect that might not always be the case in pratice. > > So when selecting the plain part, you don't see the attachment > > associated with the alternative part. > > > > The message structure should be: > > > > multipart/mixed > > multipart/alternative > > text/plain > > text/html > > attachment > > If we wanted to detect such messages, and add a notification or extract > the attachment, what component would be the right part for such message > alteration? A milter? Perhaps "altermime" could do this (though I am sceptical). You'd probably need to write a milter specifically for this (PyMilter). Is this a compelling problem? Perhaps it should be fixed on the sender's end. -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org