Hello everyone who are using SmartPost with XMail v1.17 Or just others who are just using combination of Courier-IMAP and XMail
Here is the patched _Linux_ binary version of XMail v1.17 http://158.39.26.220/~michailt/xmail/xmail.patched.zip The patch is by Leonardo Fogel (BIG THANKS TO YOU!) The double POP messages are no more! *** Important: after the patch is applied, the POP3 client will once again duplicate older messages that have the older UIDs (with IMAP4 flags). Next time, it will work normally. Just overwrite your /MailRoot/bin/XMail file with this one from archive Here is the original patch text=20 ------------------------------------------------------- --- POP3Svr.cpp Sun Sep 14 15:33:30 2003 +++ POP3Svr.new.cpp Fri Sep 26 09:02:10 2003 @@ -1098,10 +1098,13 @@ for (int ii =3D 0; ii < iMsgTotal; ii++) { char szMessageUIDL[256] =3D ""; + char *pIMAP4Flags; =20 if (UPopGetMessageUIDL(POP3S.hPOPSession, ii + 1,=20 szMessageUIDL) =3D=3D 0) { =20 + if ((pIMAP4Flags =3D strstr(szMessageUIDL, ":2,"))) + *pIMAP4Flags =3D '\0'; BSckVSendString(hBSock, POP3S.pPOP3Cfg->iTimeout, "%d %s", ii + 1, szMessageUIDL); =20 @@ -1113,12 +1116,15 @@ else { char szMessageUIDL[256] =3D ""; + char *pIMAP4Flags; =20 if (UPopGetMessageUIDL(POP3S.hPOPSession, iMsgIndex,=20 szMessageUIDL) < 0) BSckSendString(hBSock, "-ERR No such message",=20 POP3S.pPOP3Cfg->iTimeout); else { =20 + if ((pIMAP4Flags =3D strstr(szMessageUIDL, ":2,"))) + *pIMAP4Flags =3D '\0'; BSckVSendString(hBSock, POP3S.pPOP3Cfg->iTimeout, "+OK %d %s", iMsgIndex, szMessageUIDL); --------------------------------------------------------------------- This wrote by Leonardo Fogel: ----------------------------------------------------------- Please, find enclosed a patch to XMail-1.17. It solves the 'double POP after' problem. Apply it: # cd 'xmail-1.17-dir' # patch < POP3Svr.cpp.diff.txt (re)build and (re)install XMail-1.17. The patch's job is very simple: strip Courier-IMAP flags from UIDs. *** Important: after the patch is applied, the POP3 client will once again duplicate older messages that have the older UIDs (with IMAP4 flags). Next time, it will work normally. *** Important too: You will need this patch only if you want XMail to work with Courier-IMAP. ----------------------------------------------------------- Mikhail Tchoudinov - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
