|
|
@ -61,6 +61,7 @@ usage () { |
|
|
|
|
|
|
|
######################################## |
|
|
|
# recherche des binaires |
|
|
|
mbox=$(realpath "$1") |
|
|
|
cd $(dirname $0) |
|
|
|
eMailShrinker="$(realpath "./eMailShrinker")" |
|
|
|
[ -x "${eMailShrinker}" ] || eMailShrinker="$(realpath "../../build/out/eMailShrinker")" |
|
|
@ -85,7 +86,6 @@ esac |
|
|
|
[ "$#" -eq 1 ] || usage |
|
|
|
|
|
|
|
######################################## |
|
|
|
mbox=$(realpath "$1") |
|
|
|
dos2unix "${mbox}" |
|
|
|
DOMAINNAME="$(cat domainname)" |
|
|
|
JIRAFEAU_URL="https://depot.${DOMAINNAME}" |
|
|
@ -112,7 +112,8 @@ curlJirafeauSend () { |
|
|
|
|
|
|
|
type=$3 |
|
|
|
[ -z "${type}" ] && type="text/plain" |
|
|
|
curl -X POST -F "time=$1" -F "key=$5" -F "file=@$2;type=${type};filename=$4" "${JIRAFEAU_LOCAL}/a.php" |
|
|
|
LOG "curl -X POST -F \"time=$1\" -F \"key=$5\" -F \"file=@$2;type=${type};filename=\\\"$4\\\"\" \"${JIRAFEAU_LOCAL}/a.php\"" |
|
|
|
curl -X POST -F "time=$1" -F "key=$5" -F "file=@$2;type=${type};filename=\"$4\"" "${JIRAFEAU_LOCAL}/a.php" |
|
|
|
#"${jirafeauAPI}" -f "${JIRAFEAU_LOCAL}" -t "$1" -s "1Gi" -c "${type}" -n "$4" send "$2" "$5" |
|
|
|
} |
|
|
|
|
|
|
|