From 8c2ee6d3d0071eded466c4801d9c3510c92eae1f Mon Sep 17 00:00:00 2001 From: lnu Date: Mon, 13 Feb 2006 21:30:41 +0000 Subject: git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@88 f70e237a-67f3-0310-a06c-d2b8a7116972 --- lib/feed2imap/imap.rb | 2 +- lib/feed2imap/itemtomail.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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} " end message.header['To'] = "#{from} " - if @date.nil? + if item.date.nil? message.header['Date'] = Time::new.rfc2822 else message.header['Date'] = item.date.rfc2822 -- cgit v1.2.3-54-g00ecf