From c5468b4a598afa09d8e4c0d8e46ab44cca1e9c60 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 9 Mar 2016 15:04:20 +0100 Subject: pullimap: purge old messages every 12h. --- pullimap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pullimap') diff --git a/pullimap b/pullimap index c16d6ac..351b4f3 100755 --- a/pullimap +++ b/pullimap @@ -236,7 +236,7 @@ sub purge() { unless ($days == 0) { my $now = time; - return if defined $LAST_PURGED and $now - $LAST_PURGED < 6*3600; # purge every 6h + return if defined $LAST_PURGED and $now - $LAST_PURGED < 43200; # purge every 12h $LAST_PURGED = $now; my @now = gmtime($now - $days*86400); -- cgit v1.2.3