-/*
- * Check to see if the client host is on some sort of spam list (RBL)
- * If spammer, returns nonzero and places reason in 'message_to_spammer'
- *
- * PORTABILITY NOTE! I've made my best effort to rewrite this in a portable fashion.
- * If anyone makes changes to this function, please shout-out so we can test it to
- * make sure it didn't break on Linux!
- *
- * FIXME: support IPv6 RBL as specified in http://tools.ietf.org/html/draft-irtf-asrg-dnsbl-08
- */
-int rbl_check(char *message_to_spammer) {
- int r;
- struct sockaddr_in peer;
- socklen_t peer_len = 0;
-
- peer_len = sizeof(peer);
- r = getpeername(CC->client_socket, &peer, &peer_len);
- if (r == 0) {
- return(rbl_check_addr(&peer.sin_addr, message_to_spammer));
- }
- else {
- CtdlLogPrintf(CTDL_INFO, "RBL getpeername() failed: %s\n", strerror(errno));
- }
- return(0);
-}
-