]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_spam.c
* extract_token() now expects to be supplied with the size of the
[citadel.git] / citadel / serv_spam.c
index 317dd7da8642289bac7cfddb703b8b9772f8a3b6..8cdca5648ba1551767a6dfff89609a82eb246705 100644 (file)
@@ -119,7 +119,7 @@ int spam_assassin(struct CtdlMessage *msg) {
 
        /* 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");