summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/imap.rb2
-rw-r--r--lib/feed2imap/itemtomail.rb2
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
21 19:34:57 +0000'>2007-07-21updated howtonecoro1-14/+24 2007-07-20new Plugin Schemenecoro1-5/+4 2007-07-20new Plugin Schemenecoro1-1/+1 2007-07-20new Plugin Schemenecoro9-162/+214 2007-07-13fixesnecoro4-27/+37 2007-07-13new fancier log outputnecoro14-127/+116 2007-07-11added SIGSTOP/SIGCONT support; SIGTERM now works ;)necoro8-208/+275 2007-07-09bug in shutdown pluginnecoro2-5/+12 2007-07-09added resume_loop pluginnecoro1-1/+1 2007-07-09added resume_loop pluginnecoro10-22/+162 2007-07-07some more documentationnecoro6-4/+108 2007-07-07Some documentation worknecoro7-18/+129