summaryrefslogtreecommitdiff
path: root/lib/feed2imap/itemtomail.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/feed2imap/itemtomail.rb')
-rw-r--r--lib/feed2imap/itemtomail.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/feed2imap/itemtomail.rb b/lib/feed2imap/itemtomail.rb
index 20fdd12..3a552d6 100644
--- a/lib/feed2imap/itemtomail.rb
+++ b/lib/feed2imap/itemtomail.rb
@@ -53,7 +53,7 @@ def item_to_mail(item, index, updated, from = 'Feed2Imap')
message.header['From'] = "#{from} <feed2imap@acme.com>"
end
message.header['To'] = "#{from} <feed2imap@acme.com>"
- if @date.nil?
+ if item.date.nil?
message.header['Date'] = Time::new.rfc2822
else
message.header['Date'] = item.date.rfc2822