Hi Davide,
Great! 1.8 is out, however I guess something is still left out: int MscSetupServerNetPath(ServerNetPath & SvrPath, char const *pszConnSpec, int iDefPortNo) { char const *pszColon = strchr(pszConnSpec, ':'); ZeroData(SvrPath); if (pszColon != NULL) { int iIPLen = (int) (pszColon - pszConnSpec); char szIP[256] = ""; strncpy(szIP, pszConnSpec, iIPLen = Min(iIPLen, sizeof(szIP) - 1)); szIP[iIPLen] = '\0'; SvrPath.NetAddr = SysInetAddr(szIP); /////////////////////////////////////////////////////////////////////////////////////// If the POP3Link file contains pop.mypop.com:1110 and not 201.12.21.1:1110 then the above code wont work. /////////////////////////////////////////////////////////////////////////////////////// SvrPath.iPortNo = atoi(pszColon + 1); } else { if (MscGetServerAddress(pszConnSpec, SvrPath.NetAddr) < 0) return (ErrGetErrorCode()); SvrPath.iPortNo = iDefPortNo; } return (0); } How abt replacing the code with : if ((SvrPath.NetAddr = SysInetAddr(szIP)) == SYS_INVALID_NET_ADDRESS) SvrPath.NetAddr = SysGetHostByName(pszServer); Its your own code, and if its not what you intended to do but will add abit of flexibility ;) -Veeresh - 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]