Code Monkey home page Code Monkey logo

caeml's Introduction

github-stats

caeml's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

caeml's Issues

Allow for rudimentary handling of non-text html parts.

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:

  • print a warning, if there's no text/plain part found
  • allow a commandline override to output a different part other than text/plain
  • somehow print an enumeration of all the message parts (maybe as a special "header"?)

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).

add digest mode

Also display the text/plain part from any message/rfc562 attachment in the email with the same headers

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.