serial
a book serializer
this is the worst thingie i can imagine that sends you an email at a scheduled interval containing a snippet of a book, length of your choosing.
requirements
- recutils
- awk
- postfix: configuring postfix (or some other mail transfer agent) is up to you!
i successfully did it after a lot of trial and error. see:
/doc/postfix.txt
- jq
- fzf (optional)
- just (optional)
usage
-
update the recepient's email address in
justfile
-
put plain text ebooks in
/src
. (check out https://www.gutenberg.org/) -
create a new entry for each new book in
config.rec
(seeconfig.rec
for details) -
either run
just process
every day, or set up a cron job to run it (https://crontab.guru/#12__**)
details
All variables and values mentioned below exist in each record of config.rec
-
Iterate over the records in config.rec. If today is not present in
delivery
, continue. -
Iterate over paragraphs (sep = '\n\n') starting with paragraph number
progress
and ending when the running word count exceedsWPM * minutes
. -
Pipe those paragraphs to postfix mail
-
Increment
iter
and updateprogress
to be the final paragraph number (plus one)