Merge tag 'upstream/1.2.3'
Upstream version 1.2.3
# gpg: Signature made Ter 07 Out 2014 18:39:40 BRT using RSA key ID CD460BDE
# gpg: Good signature from "Antonio Terceiro <terceiro@softwarelivre.org>"
# gpg: aka "Antonio Terceiro <terceiro@dcc.ufba.br>"
# gpg: aka "Antonio Terceiro <terceiro@colivre.coop.br>"
# gpg: aka "Antonio Terceiro <terceiro@debian.org>"
Antonio Terceiro
8 years ago
47 | 47 |
s.summary = "RSS/Atom feed aggregator"
|
48 | 48 |
s.name = PKG_NAME
|
49 | 49 |
s.version = PKG_VERSION
|
50 | |
s.add_runtime_dependency 'ruby-feedparser', '0.9'
|
|
50 |
s.add_runtime_dependency 'ruby-feedparser', '>= 0.9'
|
51 | 51 |
s.require_path = 'lib'
|
52 | 52 |
s.executables = PKG_FILES.grep(%r{\Abin\/.}).map { |bin|
|
53 | 53 |
bin.gsub(%r{\Abin/}, '')
|
17 | 17 |
=end
|
18 | 18 |
|
19 | 19 |
# Feed2Imap version
|
20 | |
F2I_VERSION = '1.2.2'
|
|
20 |
F2I_VERSION = '1.2.3'
|
21 | 21 |
F2I_WARNFETCHTIME = 10
|
22 | 22 |
|
23 | 23 |
require 'feed2imap/config'
|
60 | 60 |
guarantee_maildir(dir)
|
61 | 61 |
|
62 | 62 |
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
|
64 | 64 |
Dir[File.join(dir, 'cur', '*')].each do |fn|
|
65 | 65 |
flags = maildir_file_info_flags(fn)
|
66 | 66 |
# 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
|
19 | 19 |
def test_cleanup
|
20 | 20 |
folder = create_maildir
|
21 | 21 |
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
|
22 | 26 |
|
23 | 27 |
maildir_account.cleanup(folder)
|
24 | 28 |
|