diff --git a/src/bash/filter.sh b/src/bash/filter.sh index 0e9b2d8..fc2fd2e 100644 --- a/src/bash/filter.sh +++ b/src/bash/filter.sh @@ -106,7 +106,7 @@ mkdir -p "${REP_PIECE_JOINTE}/" # Etape de rafraichissement des anciens fichiers inclus echo "time: ${DATE_TEMPS}" > "${ARCHIVE_CONTENT}" -[ -n "${TRACK}" ] && echo "src: ${MAIL_SOURCE}" >> "${ARCHIVE_CONTENT}" +[ -n "${TRACK}" ] && echo "sender: ${MAIL_SOURCE}" >> "${ARCHIVE_CONTENT}" LOG_FIC "${SHRINK_CMD} -u \"${INSPECT_DIR}/in.$$\" 2>> \"${FIC_LOG}\" > \"${OLD_LINKS}\"" "${SHRINK_CMD}" -u "${INSPECT_DIR}/in.$$" 2>> "${FIC_LOG}" > "${OLD_LINKS}" diff --git a/src/cpp/jirafeauAPI.cpp b/src/cpp/jirafeauAPI.cpp index 488cb50..98c25e8 100644 --- a/src/cpp/jirafeauAPI.cpp +++ b/src/cpp/jirafeauAPI.cpp @@ -122,8 +122,7 @@ main (int argc, char** argv) { contentType, attachName, urlBase ("http://file.kaz.bzh"), - apiPage ("/script.php"), - downloadPage ("/f.php"), + uploadPage ("/a.php"), updatePage ("/a.php"), minimumAvailability ("month"), proxy; @@ -145,8 +144,8 @@ main (int argc, char** argv) { ("useTheForceLuke", bool_switch (&useTheForceLuke), "display hidded options") ("debug,g", bool_switch (&debugFlag), "debug mode") ("proxy,p", value (&proxy)->default_value (proxy), "set proxy (proxy-host.org:8080)") - ("uploadPage,u", value (&apiPage)->default_value (apiPage), "upload page") - ("downloadPage,d", value (&downloadPage)->default_value (downloadPage), "download page") + ("uploadPage,u", value (&uploadPage)->default_value (uploadPage), "upload page") + ("updatePage,t", value (&updatePage)->default_value (updatePage), "update page") ; options_description cmd ("All options"); @@ -221,8 +220,8 @@ main (int argc, char** argv) { switch (jirCmd) { case SEND: { - LOG ("SEND: " << (urlBase+apiPage)); - curl_easy_setopt (easyhandle, CURLOPT_URL, (urlBase+apiPage).c_str ()); + LOG ("SEND: " << (urlBase+uploadPage)); + curl_easy_setopt (easyhandle, CURLOPT_URL, (urlBase+uploadPage).c_str ()); LOG ("maxUploadSize: " << maxUploadSize); long uploadsize = (size_t) maxUploadSize;