Skip to content

Instantly share code, notes, and snippets.

Last active December 18, 2015 14:19
What would you like to do?
Place a new emailed static Jekyll comment ( A. Put somewhere B. Add that line to your .muttrc file C. Make the magic happen by pressing ,c in mutt. This is not minimalist nor elegant, but it works…
macro index,pager ,c "<pipe-message>/path/to/<return>" "post Jekyll static comment"
formail -I "" > /tmp/comment.yaml
COMMENTID=$(formail -x "post_id" < /tmp/comment.yaml | sed 's/\///g' | sed 's/ //g')
COMMENTDATE=$(formail -x "date" < /tmp/comment.yaml | sed -e 's/^[ \t]*//' | sed 's/ /_/g')
mv /tmp/comment.yaml "$COMMENTSPATH/$COMMENTID/$COMMENTDATE.yaml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment