diff options
author | Lucas Nussbaum <lucas@xanadu.blop.info> | 2008-06-19 14:24:18 +0200 |
---|---|---|
committer | Lucas Nussbaum <lucas@xanadu.blop.info> | 2008-06-19 14:24:18 +0200 |
commit | 9c00e1b750c54d1a5b5a7623bfcbf9416ec4b790 (patch) | |
tree | f24c52e7cf128f206e9686cdc4f77ee93bc02c7b | |
parent | 681282e34aa028f1a365ef0e95c05a185d4caed3 (diff) | |
download | feed2imap-9c00e1b750c54d1a5b5a7623bfcbf9416ec4b790.tar.gz feed2imap-9c00e1b750c54d1a5b5a7623bfcbf9416ec4b790.tar.bz2 feed2imap-9c00e1b750c54d1a5b5a7623bfcbf9416ec4b790.zip |
Remove the Recent flag when updating an email
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | lib/feed2imap/imap.rb | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -6,6 +6,7 @@ Feed2Imap 0.9.3 (XX/02/2008) option). Based on a patch by Pavel Avgustinov, and with help from Arnt Gulbrandsen. * Dropped rubymail_patch.rb +* 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 |