Package: feed2imap Version: 1.2.2-1 Severity: normal Tags: patch Hi,
in maildir targets, feed2imap-cleaner deletes all messages regardless of their dates. The culprit is a doubled minus sign on line 64 of /usr/lib/ruby/vendor_ruby/feed2imap/maildir.rb setting the recent_time to 3 days in the future instead of 3 days in the past. --- /usr/lib/ruby/vendor_ruby/feed2imap/maildir.rb~ 2014-02-07 13:59:15.000000000 +0100 +++ /usr/lib/ruby/vendor_ruby/feed2imap/maildir.rb 2014-09-20 20:54:09.647266076 +0200 @@ -61,7 +61,7 @@ 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 -- Sylvain Sauvage -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org