summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--lib/feed2imap/imap.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 56079d0..e806c81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@ Feed2Imap 0.9.3 (XX/02/2008)
* Dropped rubymail_patch.rb
* Added option to wrap text output. Thanks to Maxime Petazzoni for
the patch.
+* When updating an email, remove the Recent flag.
Feed2Imap 0.9.2 (28/10/2007)
============================
diff --git a/lib/feed2imap/imap.rb b/lib/feed2imap/imap.rb
index 952fd7c..63cd733 100644
--- a/lib/feed2imap/imap.rb
+++ b/lib/feed2imap/imap.rb
@@ -112,6 +112,7 @@ class ImapAccount
flags = @connection.fetch(searchres[0], 'FLAGS')[0].attr['FLAGS']
searchres.each { |m| @connection.store(m, "+FLAGS", [:Deleted]) }
@connection.expunge
+ flags -= [ :Recent ] # avoids errors with dovecot
end
@connection.append(folder, mail.gsub(/\n/, "\r\n"), flags, date)
end