Ah, no. different issue it seems. When reading via POP with keep mail on server, if you then viewed the mailbox with IMAP all the messages appeared unread. I used POP at my main PC and webmail/imap from remote -- to view new messages before I download them at my PC. This was a real pain to deal with so I produced the hack...
Don't use Imp, so am not sure about your issue sorry. /Mark On 1/10/02 2:15 AM, "Kostas Georgakopoulos" <[EMAIL PROTECTED]> wrote: > I don't know if you are reffering to my post, but after your quick fix i still > have the same problem: > > (i read my mail with imp) > > A new mail arrives, i read it, i MARK it as read, and after refreshing i get > the same pop up that says: you have 1 new message! > > -----∞Ú¯ÈÎfi ª‹Ó˘Ì·----- > ∞fi: Mark Mackay <[EMAIL PROTECTED]> > £€Ì·: [Dbmail] Quick fix for the imap vs pop read state > ∏ÌÂÚÔÌËÓ›·: Sat, 28 Sep 2002 18:59:42 +1200 > > As mentioned in a previous post, I found that if you POPed a mailbox and > kept messages on server, any subsequent imap sessions showed the message > state as unread. > > Here's a quick fix (sorry not a patchfile): > > In dbmysql, function db_update_pop replace: > > snprintf (query,DEF_QUERYSIZE, > "UPDATE messages set status=%llu WHERE message_idnr=%llu AND > status<002", > ((struct message *)tmpelement->data)->virtual_messagestatus, > ((struct message *)tmpelement->data)->realmessageid); > > With > > snprintf (query,DEF_QUERYSIZE, > "UPDATE messages set seen_flag=if(%llu=1, 1, seen_flag), > status=%llu WHERE message_idnr=%llu AND status<002", > ((struct message *)tmpelement->data)->virtual_messagestatus, > ((struct message *)tmpelement->data)->virtual_messagestatus, > ((struct message *)tmpelement->data)->realmessageid); > > > Works for me and should keep the imap state intact if POP doesn't change it, > but I don't think that really should be an issue anyway. The 'better' way to > do it is probably to just use the state column to determine read/unread in > the Imap client, but I didn't want do go and hack away at that if the rfc > called for something else... > > /Mark > > _______________________________________________ > Dbmail mailing list > Dbmail@dbmail.org > https://mailman.fastxs.nl/mailman/listinfo/dbmail > > > ______________________________________________________________________________ > ________ > http://mobile.pathfinder.gr - Pathfinder Mobile logos & Ringtones! > http://www.pathfinder.gr - ¢ˆÚÂ¿Ó mail ·fi ÙÔÓ Pathfinder! > _______________________________________________ > Dbmail mailing list > Dbmail@dbmail.org > https://mailman.fastxs.nl/mailman/listinfo/dbmail > >