From c46c823aff3ad63fbc62c2281ac4fddb0bcb1e21 Mon Sep 17 00:00:00 2001 From: Lucas Nussbaum Date: Tue, 30 Nov 2010 22:03:03 +0100 Subject: Add a reupload_if_updated option (default: true) Following a discussion on feed2imap-devel, add a reupload_if_updated option. When set to false, if an item is updated, but was previously removed from the IMAP server, it is no longer re-uploaded. Also fix some config file parsing bugs for the disable-ssl-verification and include-images options. I should really switch to another way to describe F2I config... --- lib/feed2imap/feed2imap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/feed2imap/feed2imap.rb') diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb index fb4c794..b938a39 100644 --- a/lib/feed2imap/feed2imap.rb +++ b/lib/feed2imap/feed2imap.rb @@ -247,7 +247,7 @@ class Feed2Imap id = "<#{fn}-#{i.cacheditem.index}@#{@config.hostname}>" email = item_to_mail(@config, i, id, true, f.name, f.include_images, f.wrapto) f.imapaccount.updatemail(f.folder, email, - id, i.date || Time::new) + id, i.date || Time::new, f.reupload_if_updated) end # reverse is needed to upload older items first (fixes gna#8986) newitems.reverse.each do |i| -- cgit v1.2.3-70-g09d2