CVS: bopm/src dnsbl.c,1.29,1.30

[email protected] (David Leadbeater)
Newsgroups gmane.network.irc.bopm
Message-ID <[email protected]>
Update of /data/cvs/bopm/src
In directory nubian.blitzed.org:/tmp/cvs-serv36713

Modified Files:
	dnsbl.c 
Log Message:
Add X- header to BOPM reports for version, patch from mark.


Index: dnsbl.c
===================================================================
RCS file: /data/cvs/bopm/src/dnsbl.c,v
retrieving revision 1.29
retrieving revision 1.30
diff --unified=6 -r1.29 -r1.30
--- dnsbl.c	22 Jun 2003 18:03:41 -0000	1.29
+++ dnsbl.c	15 Jan 2004 23:12:40 -0000	1.30
@@ -245,17 +245,18 @@
 
 
    snprintf(cmdbuf, sizeof(cmdbuf), "%s -t", OpmItem->sendmail);
    snprintf(buf, sizeof(buf),
             "From: %s <%s>\n"
             "To: %s\n"
-            "Subject: BOPM Report\n\n"
+            "Subject: BOPM Report\n"
+            "X-BOPM-Version: %s\n\n"
             "%s: %s:%d\n\n"
             "%s\n", IRCItem->nick, OpmItem->dnsbl_from, OpmItem->dnsbl_to,
-            scan_gettype(ss->remote->protocol), ss->ip, ss->remote->port,
-	    ss->proof);
+            VERSION, scan_gettype(ss->remote->protocol), ss->ip,
+            ss->remote->port, ss->proof);
 
    if(OPT_DEBUG >= 3)
       log_printf("DNSBL -> Sending following email:\n%s\n", buf);
 
    if ((fp = popen(cmdbuf, "w")) == NULL)
    {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.