ferdinandyb / caeml Goto Github PK
View Code? Open in Web Editor NEWcat eml files, with "uninteresting" headers stripped and "interesting" ones decoded
License: MIT License
cat eml files, with "uninteresting" headers stripped and "interesting" ones decoded
License: MIT License
Caeml currently assumes that seeing the text/plain
part is what you want. It does not provide any information about the existence of other message parts, nor is it obvious from the output whether the message is empty or whether it did not contain a text/plain
part (some people might only send text/html
).
Some thoughts about improvement:
text/plain
part foundtext/plain
Some notes to myself:
Maybe go somehow like this: iterate over all the parts. If we see text/plain, store it for output and after the entire iteration write it to stdout. If we haven't yet seen text/plain but we see text/html store that for output, but overwrite with text/plain if we see that. If user passes text/html as the desired output, do the same, but don't overwrite with text/plain (need to store a flag that the stored output is not fallback probably). We can do this for any other part (i.e. first always fall back to text/plain, if that is not available to text/html, but if we see the requested part store that for output and set the flag that we are not fallback anymore).
Also display the text/plain
part from any message/rfc562
attachment in the email with the same headers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.