summaryrefslogtreecommitdiff
path: root/lib/feed2imap/feed2imap.rb
diff options
context:
space:
mode:
authorLucas Nussbaum <lucas@lucas-nussbaum.net>2010-11-30 22:03:03 +0100
committerLucas Nussbaum <lucas@lucas-nussbaum.net>2010-11-30 22:03:03 +0100
commitc46c823aff3ad63fbc62c2281ac4fddb0bcb1e21 (patch)
tree13952d711e7a96ab1580c84a595c04dce89b4134 /lib/feed2imap/feed2imap.rb
parent94dc1db641f98242496a32409e823920f4e700e9 (diff)
downloadfeed2imap-c46c823aff3ad63fbc62c2281ac4fddb0bcb1e21.tar.gz
feed2imap-c46c823aff3ad63fbc62c2281ac4fddb0bcb1e21.tar.bz2
feed2imap-c46c823aff3ad63fbc62c2281ac4fddb0bcb1e21.zip
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...
Diffstat (limited to 'lib/feed2imap/feed2imap.rb')
-rw-r--r--lib/feed2imap/feed2imap.rb2
1 files changed, 1 insertions, 1 deletions
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|