[aiaiai] aiaiai-email-lda: allow reaping of series directories
Jacob Keller
jacob.e.keller at intel.com
Wed Aug 26 03:50:45 PDT 2015
Since series are stored as a directory, the reap_old logic would fail to
remove them, because it did not specify -r to recursively remove
directories.
Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
---
email/aiaiai-email-lda | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/email/aiaiai-email-lda b/email/aiaiai-email-lda
index 657bd2c482f3..48dce0f75ebe 100755
--- a/email/aiaiai-email-lda
+++ b/email/aiaiai-email-lda
@@ -449,7 +449,7 @@ reap_old()
local min="$1"; shift
verbose "Reaping files older than \"$min\" minutes in \"$dir\""
- find "$dir" -mindepth 1 -mmin +"$min" -exec rm $verbose -f -- "{}" ";" >&2
+ find "$dir" -mindepth 1 -mmin +"$min" -exec rm $verbose -r -f -- "{}" ";" >&2
}
mbox=
--
2.5.0.280.g4aaba03
More information about the aiaiai
mailing list