Coder Social home page Coder Social logo

Comments (5)

pabzm avatar pabzm commented on September 23, 2024

The relevant difference is that the broken version's attachment mime-structure doesn't have a Content-Disposition-header. After adding that the message gets shown as expected.

We'll have to check if/how to fix this.

from roundcubemail.

pabzm avatar pabzm commented on September 23, 2024

Related: #7117, #5905

from roundcubemail.

alecpl avatar alecpl commented on September 23, 2024

Related to #5051. At least in this specific case we can more easily detect that the message has no html part so any images should be treated as non-inline.

from roundcubemail.

pabzm avatar pabzm commented on September 23, 2024

Currently the image in the "Not OK" email is considered an inline image by Roundcube. I fiddled with some code in program/actions/mail/show.php to make it display the image, but maybe a more general approach to handle "dangling" images would be better.

Also I figured that some code probably relates to concrete edge cases, like is_attachment() – because for a general check this is too specific. Changing that code without tests checking these edge cases is too dangerous for my taste.

@alecpl Do you have some kind of test corpus of emails to check against? I started to extend TestCases in order to check the correct rendering of emails (will open a PR later).

from roundcubemail.

alecpl avatar alecpl commented on September 23, 2024

I agree that fixing this kind of issues properly might involve quite a big refactoring. There's no easy bugs in this tracker ;).

from roundcubemail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.