Convert libmime from C to C++
Categories
(MailNews Core :: MIME, enhancement)
Tracking
(Not tracked)
People
(Reporter: BenB, Assigned: BenB)
References
Details
Attachments
(1 file)
| Assignee | ||
Comment 1•8 years ago
|
||
| Assignee | ||
Comment 2•8 years ago
|
||
| Assignee | ||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Updated•8 years ago
|
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
| Assignee | ||
Comment 7•8 years ago
|
||
| Assignee | ||
Comment 8•8 years ago
|
||
| Assignee | ||
Comment 9•8 years ago
|
||
| Assignee | ||
Comment 10•8 years ago
|
||
| Assignee | ||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
| Assignee | ||
Comment 13•8 years ago
|
||
| Assignee | ||
Comment 14•8 years ago
|
||
Updated•3 years ago
|
Comment 15•4 months ago
•
|
||
Did anything come of this task or is the goal to eventually move to something shiny and new in either JS or Rust by now?
Comment 16•4 months ago
|
||
Yes. jsmime already does a lot of what a mime library should, though consuming body parts is lacking logic etc. While it could be possible to hook things up it's not straight forward...
Comment 17•4 months ago
|
||
What's wrong with giving the C MIME library a facelift and replacing passing function pointers around with proper C++ classes and inheritance? Why is that a WONTFIX? It's been done once, it just needs to be followed through.
Comment 18•4 months ago
|
||
It feels like a classic lipstick on a pig type situation to me, especially with so much fundamentally flawed logic.
Comment 19•4 months ago
|
||
Unless there are plans to replace the entire thing, maybe lifting it to a modern standard would be the first step to introduce maintainability. This is the core of message display, but apart from brave people like yourself, it's seen very little maintainence or bug fixes, mostly based on bug 1251783 comment 20.
Comment 20•4 months ago
•
|
||
It has by far too high risk/reward ratio.
Comment 21•4 months ago
|
||
I might even give https://docs.rs/mail-parser/latest/mail_parser/ a go at some point based on the very promising description, maintained mostly by our friends at Stalwart which we most likely even have a commercial relationship with in some capacity for the upcoming mail service.
Either way, I don't think the use of C++ features in the current libmime gets us anything meaningful.
Comment 22•4 months ago
|
||
Yep, I made a pretty comprehensive analysis of that idea in bug 2034726, looks like a much more promising way forward after the next ESR.
Description
•