diff options
author | Antonio Terceiro <terceiro@softwarelivre.org> | 2014-10-07 18:31:18 -0300 |
---|---|---|
committer | Antonio Terceiro <terceiro@softwarelivre.org> | 2014-10-07 18:31:18 -0300 |
commit | 21e8e7caa9b420cd7c1b2a96303200ce3686281d (patch) | |
tree | 1338102c01bd0ce79a8bdc3bba15187be9bc97dd /lib/feed2imap | |
parent | 706a52ea12976ab2b7892e21a97fff99fb6731b3 (diff) | |
download | feed2imap-21e8e7caa9b420cd7c1b2a96303200ce3686281d.tar.gz feed2imap-21e8e7caa9b420cd7c1b2a96303200ce3686281d.tar.bz2 feed2imap-21e8e7caa9b420cd7c1b2a96303200ce3686281d.zip |
Fix cleanup of maildirs
Thanks to Sylvain L. Sauvage for the bug report
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/maildir.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |