aboutsummaryrefslogtreecommitdiffstats
path: root/pullimap
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-03-09 15:04:20 +0100
committerGuilhem Moulin <guilhem@fripost.org>2016-03-09 15:04:20 +0100
commitc5468b4a598afa09d8e4c0d8e46ab44cca1e9c60 (patch)
tree4baa87288fd982e87e82314f997e9c906493a915 /pullimap
parent6bf9ee9a1e1c704490489f682dfe106f2c1ee46a (diff)
pullimap: purge old messages every 12h.
Diffstat (limited to 'pullimap')
-rwxr-xr-xpullimap2
1 files changed, 1 insertions, 1 deletions
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);