From mboxrd@z Thu Jan 1 00:00:00 1970 From: col@baibell.org (Colin Bell) Date: Wed, 31 Oct 2007 13:12:30 +1100 Subject: [sup-talk] Seen flag treated incorrectly on IMAP mail Message-ID: <1193796632-sup-4626@lankhmar> Hi, When I connect Sup to a Dovecot imap server all mail that is flagged as new on the server is treated as read by Sup. Sup also sees all old mail as new. I think its caused by this code in each(...) in imap.rb labels = { :Seen => :unread, :Flagged => :starred, :Deleted => :deleted }.inject(@labels) do |cur, (imap, sup)| cur + (state[:flags].include?(imap) ? [sup] : []) This seems (to my non-existent Ruby skills) to be equating the IMAP Seen flag to be the same as the Sup Unread flag, instead of Seen as being Not Unread. This is running the latest code from Subversion head. -- Col