Package list feed2imap / 526e040
Imported Upstream version 1.2.3 Antonio Terceiro 7 years ago
5 changed file(s) with 18 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
4747 s.summary = "RSS/Atom feed aggregator"
4848 s.name = PKG_NAME
4949 s.version = PKG_VERSION
50 s.add_runtime_dependency 'ruby-feedparser', '0.9'
50 s.add_runtime_dependency 'ruby-feedparser', '>= 0.9'
5151 s.require_path = 'lib'
5252 s.executables = PKG_FILES.grep(%r{\Abin\/.}).map { |bin|
5353 bin.gsub(%r{\Abin/}, '')
1717 =end
1818
1919 # Feed2Imap version
20 F2I_VERSION = '1.2.2'
20 F2I_VERSION = '1.2.3'
2121 F2I_WARNFETCHTIME = 10
2222
2323 require 'feed2imap/config'
6060 guarantee_maildir(dir)
6161
6262 del_count = 0
63 recent_time = Time.now() -- (3 * 24 * 60 * 60) # 3 days
63 recent_time = Time.now() - (3 * 24 * 60 * 60) # 3 days
6464 Dir[File.join(dir, 'cur', '*')].each do |fn|
6565 flags = maildir_file_info_flags(fn)
6666 # don't consider not-seen, flagged, or recent messages
0 Date: Mon, 12 Aug 2013 16:25:20 +0200
1 From: Antonio Terceiro <terceiro@debian.org>
2 To: terceiro@debian.org
3 Subject: UTF-8 data: =?iso-8859-1?B?4ent8/o=?=
4 Message-ID: <regular-message-id-2@debian.org>
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=us-ascii
7 Content-Disposition: inline
8 User-Agent: Mutt/1.5.21 (2010-09-15)
9
10 This is a sample email
1919 def test_cleanup
2020 folder = create_maildir
2121 msgs = message_count(folder)
22
23 four_days_ago = Time.now - (4 * 24 * 60 * 60)
24 old_message = Dir.glob(File.join(folder, '**/*:2,S')).first
25 FileUtils.touch old_message, mtime: four_days_ago
2226
2327 maildir_account.cleanup(folder)
2428