From 9c00e1b750c54d1a5b5a7623bfcbf9416ec4b790 Mon Sep 17 00:00:00 2001 From: Lucas Nussbaum Date: Thu, 19 Jun 2008 14:24:18 +0200 Subject: Remove the Recent flag when updating an email --- lib/feed2imap/imap.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 -- cgit v1.2.3-54-g00ecf