Coder Social home page Coder Social logo

memos_remind's Introduction

memo remind

这个是用来提醒我回顾笔记的小服务,每天都会给我发送一篇我的笔记作为邮件,来帮我加深思考。

目前部署在oracle的机器上,上面集成了邮件的发送lettre和markdown到html的转化pulldown-cmark

其中lettre在使用中需要注意,我们发送的是html,一定要在header中加入标识如下:

let email = Message::builder()
       .from(from.parse()?)
       .to(to.parse()?)
       .subject(subject)
       .header(ContentType::TEXT_HTML) // !!! import !!!
       .body(body)?;

而对于pulldown-cmark默认是不支持一些markdown语法的如表格等,如果需要支持需要添加标识,如:

Options::ENABLE_STRIKETHROUGH
    | Options::ENABLE_TABLES
    | Options::ENABLE_MATH
    | Options::ENABLE_FOOTNOTES
    | Options::ENABLE_TASKLISTS
    | Options::ENABLE_SMART_PUNCTUATION
    | Options::ENABLE_TASKLISTS
    | Options::ENABLE_GFM,
);

memos_remind's People

Contributors

dongjiahong avatar

Watchers

 avatar

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.