Add the GNU version of mail

Close #54.
This commit is contained in:
Jonathan Siegel 2019-02-19 11:27:35 +01:00 committed by Andrea Cardaci
parent 2650be9c68
commit dd9f4269ed

View File

@ -1,6 +1,8 @@
---
functions:
shell:
- description: GNU version only.
code: mail --exec='!/bin/sh'
- description: This creates a valid Mbox file which may be required by the binary.
code: |
TF=$(mktemp)
@ -8,10 +10,6 @@ functions:
mail -f $TF
!/bin/sh
sudo:
- description: This creates a valid Mbox file which may be required by the binary.
code: |
TF=$(mktemp)
echo "From nobody@localhost $(date)" > $TF
sudo mail -f $TF
!/bin/sh
- description: GNU version only.
code: sudo mail --exec='!/bin/sh'
---