On 02/15/2011 11:00 PM, Sergej Pupykin wrote: > Hello, > > I use dbmail-smtp to put messages into dbmail. Is there any way to mark > them as seen? I move ejabberd mod_archive history into IMAP folder (same > as google mail does) and it is very annoying when jabber history > messages (that you already read in jabber client) marked as new. > > Currently I use SQL: > > update dbmail_messages set seen_flag=1 > where mailbox_idnr in ( > select mailbox_idnr from dbmail_mailboxes where name='Chats' > ) and seen_flag=0; > > May be there is another convinient way except dbmail-smtp?
The seen_flag only affects imap clients. Other than that it's sound. You could of course create a trigger that updates the seen_flag when ever a message is inserted in the Chats mailbox. -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl _______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
