/* Try them one by one until we get a working one */
for (sa=0; sa<num_sahosts; ++sa) {
- extract(buf, sahosts, sa);
+ extract_token(buf, sahosts, sa, '|', sizeof buf);
lprintf(CTDL_INFO, "Connecting to SpamAssassin at <%s>\n", buf);
sock = sock_connect(buf, SPAMASSASSIN_PORT, "tcp");
if (sock >= 0) lprintf(CTDL_DEBUG, "Connected!\n");
CC->redirect_len = 0;
CC->redirect_alloc = SIZ;
CtdlOutputPreLoadedMsg(msg, 0L, MT_RFC822, HEADERS_ALL, 0, 1);
- CC->redirect_buffer[CC->redirect_len] = 0;
msgtext = CC->redirect_buffer;
msglen = CC->redirect_len;
CC->redirect_buffer = NULL;