Giter VIP home page Giter VIP logo

Comments (5)

awdeorio avatar awdeorio commented on August 19, 2024 2

I have a slight preference for a command line flag, e.g., --markdown. This seems like the least surprising approach to the end user. It's not obvious that Content-Type: text/markdown is a preprocessor directive to mailmerge. It could be confused with "please send this literal email header to the recipient".

Reference: Principle of least astonishment https://en.wikipedia.org/wiki/Principle_of_least_astonishment

from mailmerge.

awdeorio avatar awdeorio commented on August 19, 2024

What might a work flow look like for authoring in Markdown? Maybe convert using Pandoc? Is there a command line flow that would approximate built-in support?

from mailmerge.

captn3m0 avatar captn3m0 commented on August 19, 2024

I found some workflow approximations for this using mutt macros and pandoc: https://news.ycombinator.com/item?id=12325589, which links to https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt

It might just work.

from mailmerge.

awdeorio avatar awdeorio commented on August 19, 2024

Cool! Maybe a README section for authoring with Markdown and conversion with Pandoc would be a good start. A PR along these lines would be very welcome!

from mailmerge.

seshrs avatar seshrs commented on August 19, 2024

What do you think of modifying the email template to specify Markdown? Something like:

TO: {{email}}
SUBJECT: Testing mailmerge
FROM: My Self <[email protected]>
Content-Type: text/markdown

Hi, {{name}},

Your number is *{{number}}*.

Sent by [mailmerge](https://github.com/awdeorio/mailmerge)

Then if mailmerge detects the Markdown content type, it could use Python Markdown to construct the HTML version of the message.

Alternatively, perhaps users could run mailmerge with a flag --convert-markdown instead of specifying a content type in the message template?

from mailmerge.

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.