summaryrefslogtreecommitdiff
path: root/lib/feed2imap/feed2imap.rb
diff options
context:
space:
mode:
authorlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-02-13 21:18:00 +0000
committerlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-02-13 21:18:00 +0000
commitcc93e2349da909fcc8f5d1681e2feae90f5d5ef7 (patch)
tree336ec6f8ef06b07eebd8e96fb399f25b2d3198b5 /lib/feed2imap/feed2imap.rb
parente4a177729121f189a051f0b496812bf810fd4be1 (diff)
downloadfeed2imap-cc93e2349da909fcc8f5d1681e2feae90f5d5ef7.tar.gz
feed2imap-cc93e2349da909fcc8f5d1681e2feae90f5d5ef7.tar.bz2
feed2imap-cc93e2349da909fcc8f5d1681e2feae90f5d5ef7.zip
now upload with the item time
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@87 f70e237a-67f3-0310-a06c-d2b8a7116972
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/feed2imap.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb
index 41c75eb..f1ba506 100644
--- a/lib/feed2imap/feed2imap.rb
+++ b/lib/feed2imap/feed2imap.rb
@@ -156,11 +156,12 @@ class Feed2Imap
if !cacherebuild
updateditems.each do |i|
email = item_to_mail(i, i.cacheditem.index, true, f.name)
- f.imapaccount.updatemail(f.folder, email, i.cacheditem.index)
+ f.imapaccount.updatemail(f.folder, email,
+ i.cacheditem.index, i.date || Time::new)
end
newitems.each do |i|
email = item_to_mail(i, i.cacheditem.index, false, f.name)
- f.imapaccount.putmail(f.folder, email)
+ f.imapaccount.putmail(f.folder, email, i.date || Time::new)
end
end
rescue