From b99dd4533ac832f73b17fa4ebd560789ef54ce5a Mon Sep 17 00:00:00 2001 From: lnu Date: Wed, 5 Apr 2006 16:22:19 +0000 Subject: - Now compares the whole items when searching for duplicates (might cause some false-negatives) - New always-new flag git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@93 f70e237a-67f3-0310-a06c-d2b8a7116972 --- lib/feed2imap/config.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/feed2imap/config.rb') diff --git a/lib/feed2imap/config.rb b/lib/feed2imap/config.rb index 0483423..1e13a04 100644 --- a/lib/feed2imap/config.rb +++ b/lib/feed2imap/config.rb @@ -70,7 +70,7 @@ end # A configured feed. simple data container. class ConfigFeed - attr_reader :name, :url, :imapaccount, :folder + attr_reader :name, :url, :imapaccount, :folder, :always_new attr_accessor :body def initialize(f, imapaccount, folder) @@ -79,6 +79,7 @@ class ConfigFeed @url.sub!(/^feed:/, '') if @url =~ /^feed:/ @imapaccount, @folder = imapaccount, folder @freq = f['min-frequency'] + @always_new = (f['always-new'] and f['always-new'] != 'false') @freq = @freq.to_i if @freq end -- cgit v1.2.3-70-g09d2