X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/5174fa9bd71e4f671d9788707e106296638a3c63..8d9dafb4a8ff1f15bf9440c9709c88fb2983cb11:/src/sc_fetch diff --git a/src/sc_fetch b/src/sc_fetch index 3b569f7..3455028 100755 --- a/src/sc_fetch +++ b/src/sc_fetch @@ -195,7 +195,7 @@ function preparar_entrega($intento, $mbox, $msgid, $dir) { if ($fname) { logs("Escribiendo archivo '$fname' [enc={$part->encoding}]", DEBUG); $body = imap_fetchbody($mbox, $msgid, $id + 1); - $path = "$dir/" . $intento->path(); + $path = "$dir/" . $intento->path('intentos'); if (!mkdir_p($path)) return 'No se pudo crear el directorio'; if (!file_put_contents("$path/$fname", decode_body($body, $part->encoding))) return "Error al guardar el archivo $fname"; }