/*
- * $Id$
- *
* Consolidate mail from remote POP3 accounts.
*
* Copyright (c) 2007-2009 by the citadel.org team
if (CtdlThreadCheckStop())
return;
- sock = sock_connect(pop3host, "110", "tcp");
+ sock = sock_connect(pop3host, "110");
if (sock < 0) {
CtdlLogPrintf(CTDL_ERR, "Could not connect: %s\n", strerror(errno));
return;
goto bail;
CtdlLogPrintf(CTDL_DEBUG, "Connected!\n");
- CCC->sReadBuf = NewStrBuf();
+ CCC->SBuf.Buf = NewStrBuf();
CCC->sMigrateBuf = NewStrBuf();
- CCC->sPos = NULL;
+ CCC->SBuf.ReadWritePointer = NULL;
/* Read the server greeting */
if (sock_getln(&sock, buf, sizeof buf) < 0) goto bail;
if (sock_getln(&sock, buf, sizeof buf) < 0) goto bail;
CtdlLogPrintf(CTDL_DEBUG, ">%s\n", buf);
bail:
- FreeStrBuf(&CCC->sReadBuf);
+ FreeStrBuf(&CCC->SBuf.Buf);
FreeStrBuf(&CCC->sMigrateBuf);
if (sock != -1)
static int doing_pop3client = 0;
struct pop3aggr *pptr;
time_t fastest_scan;
-
+
if (config.c_pop3_fastest < config.c_pop3_fetch)
fastest_scan = config.c_pop3_fastest;
else
}
/* return our Subversion id for the Log */
- return "$Id$";
+ return "pop3client";
}