diff options
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/imap.rb | 2 | ||||
-rw-r--r-- | lib/feed2imap/itemtomail.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/feed2imap/imap.rb b/lib/feed2imap/imap.rb index e9bbb63..038833b 100644 --- a/lib/feed2imap/imap.rb +++ b/lib/feed2imap/imap.rb @@ -95,7 +95,7 @@ class ImapAccount # Put the mail in the given folder # You should check whether the folder exist first. def putmail(folder, mail, date = Time::now) - @connection.append(folder, mail.gsub(/\n/, "\r\n"), [:Recent], date) + @connection.append(folder, mail.gsub(/\n/, "\r\n"), nil, date) end # update a mail 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 |