work-in-progress
Rye currently had multple ways to send email (smtp, amazon ses, postmark), to receive email via smtp. First we will document parsing various forms of email, bacause I concretely need this.
$ wget https://ryelang.org/cookbook/working-with/plain-text.eml
$ rye -history main.rye -console -args plain-text.eml
file: rye .arg?
reader to-file file |parse-email :eml
eml .subject? |print
eml .text-body? |print
eml .html-body? |print
we got main.rye script from our history. Now we can use it for other files too
$ wget https://ryelang.org/cookbook/working-with/multipart-1.eml
$ rye . multipart-1.eml |html->markdow