changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > home / .stash/scripts/new-mail.sh

changeset 48: 953c5127546a
parent: stash/scripts/new-mail.sh@45f3b1bc3cd7
author: Richard Westhaver <ellis@rwest.io>
date: Wed, 19 Jun 2024 19:27:14 +0000
permissions: -rwxr-xr-x
description: stash -> .stash
1 #!/bin/sh
2 attach_cmds=""
3 while [ $# -gt 0 ]; do
4  fullpath=$(readlink --canonicalize "$1")
5  attach_cmds="$attach_cmds (mml-attach-file \"$fullpath\")"
6  shift
7 done
8 emacsclient -a '' -c -e "(progn (compose-mail) $attach_cmds)"