From 21e8e7caa9b420cd7c1b2a96303200ce3686281d Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 7 Oct 2014 18:31:18 -0300 Subject: Fix cleanup of maildirs Thanks to Sylvain L. Sauvage for the bug report --- lib/feed2imap/maildir.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/feed2imap/maildir.rb b/lib/feed2imap/maildir.rb index 8a5ade1..7335f03 100644 --- a/lib/feed2imap/maildir.rb +++ b/lib/feed2imap/maildir.rb @@ -61,7 +61,7 @@ class MaildirAccount guarantee_maildir(dir) del_count = 0 - recent_time = Time.now() -- (3 * 24 * 60 * 60) # 3 days + recent_time = Time.now() - (3 * 24 * 60 * 60) # 3 days Dir[File.join(dir, 'cur', '*')].each do |fn| flags = maildir_file_info_flags(fn) # don't consider not-seen, flagged, or recent messages -- cgit v1.2.3