summaryrefslogtreecommitdiff
path: root/lib/feed2imap/feed2imap.rb
diff options
context:
space:
mode:
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