diff options
author | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2006-02-13 21:30:41 +0000 |
---|---|---|
committer | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2006-02-13 21:30:41 +0000 |
commit | 8c2ee6d3d0071eded466c4801d9c3510c92eae1f (patch) | |
tree | 9947e9de422f0f76d69761a91383e727f363417e | |
parent | cc93e2349da909fcc8f5d1681e2feae90f5d5ef7 (diff) | |
download | feed2imap-8c2ee6d3d0071eded466c4801d9c3510c92eae1f.tar.gz feed2imap-8c2ee6d3d0071eded466c4801d9c3510c92eae1f.tar.bz2 feed2imap-8c2ee6d3d0071eded466c4801d9c3510c92eae1f.zip |
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@88 f70e237a-67f3-0310-a06c-d2b8a7116972
-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 |