add filename to curl command

This commit is contained in:
Élie Bouttier 2016-09-29 00:01:33 +02:00
parent 5b20e95347
commit 51f7b75c48
1 changed files with 1 additions and 1 deletions

View File

@ -7,4 +7,4 @@
# reply: "|/path/to/post-mail.sh mykey@https://example.org/conversations/recv/
# don't forget to run postalias and to add the alias file to main.cf under alias_map.
curl ${@#*\@} -F key=${@%\@*} -F "email=@-"
curl ${@#*\@} -F key=${@%\@*} -F "email=@-;filename=email.txt"