I have come across another bug where the "Seen" flag is not preserved when messages are copied or moved between two different IMAP servers.

This is because _ic_append simply ignores the flags and dbpgsql.c allways sets the flag as set.

Line dbpgsql.c:2160 says that by default all appended messages are seen
 snprintf(query, DEF_QUERYSIZE, "INSERT INTO messages "
      "(mailbox_idnr,messagesize,unique_id,internal_date,status,"
      " seen_flag) VALUES (%llu::bigint, 0, '', '%s',001,1)",
      mboxid, timestr);


I have attached a patch that is based on the current CVS tree that will honour the "Seen" flag (any flag actually) on appended messages. This patch includes the fix for dbmail-smtp failing to return the right code when the mailbox it tried to sent to did not exist.

Other than the "seen", flags don't seem to be copied by the mozilla browser or imapxfr. However an internal (within the same account) copy seems to preserve all flags.



Attachment: lmtpd-patch-a2.patch.gz
Description: Unix tar archive

Reply via email to