From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67985 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general,gmane.discuss Subject: Re: "No DNS server configuration found" when approving spam reports Date: Fri, 26 Dec 2008 10:18:12 +0100 Organization: Probably a good idea Message-ID: References: <8763l8l7y5.fsf@marauder.physik.uni-ulm.de> <87prjgjg5x.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1230283191 2701 80.91.229.12 (26 Dec 2008 09:19:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Dec 2008 09:19:51 +0000 (UTC) Cc: gmane-discuss@hawk.netfonds.no To: ding@gnus.org Original-X-From: ding-owner+M16431@lists.math.uh.edu Fri Dec 26 10:20:59 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1LG8sK-0002ts-Fd for ding-account@gmane.org; Fri, 26 Dec 2008 10:20:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1LG8q1-0007VG-Be; Fri, 26 Dec 2008 03:18:33 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LG8pz-0007V0-9x for ding@lists.math.uh.edu; Fri, 26 Dec 2008 03:18:31 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LG8pw-0006B5-Gc for ding@lists.math.uh.edu; Fri, 26 Dec 2008 03:18:31 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LG8qA-0008Lo-00 for ; Fri, 26 Dec 2008 10:18:42 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LG8pu-0000Gd-SM for ding@gnus.org; Fri, 26 Dec 2008 09:18:26 +0000 Original-Received: from ti0064a340-0073.bb.online.no ([88.90.181.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Dec 2008 09:18:26 +0000 Original-Received: from sb by ti0064a340-0073.bb.online.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Dec 2008 09:18:26 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ti0064a340-0073.bb.online.no Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (windows-nt) Cancel-Lock: sha1:p6lAyi9XPGYbMvvaIB63R0AweYY= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67985 gmane.discuss:12083 Archived-At: [cross-posting to gmane.discuss so that other CVS Gnus using spam approvers won't get confused] >>>>> Reiner Steib : > Please try the current code: > * dns.el (dns-set-servers): Renamed from dns-parse-resolv-conf. Call > nslookup if resolv.conf isn't available. > (dns-query): Rename from query-dns. > (dns-query-cached): Rename from query-dns-cached. > Does spam-gmane.el use the functions `query-dns' or > `query-dns-cached'? Then they must be renamed there. It uses query-dns-cached. I've changed it in my copy, I will notify Lars about that change as well. Unfortunately it still doesn't work...:-/ (executable-find "nslookup") works, it returns "c:/Windows/system32/nslookup.exe" The entire (when (executable-find "nslookup") (with-temp-buffer (call-process "nslookup" nil t nil "localhost") (goto-char (point-min)) (re-search-forward "^Server:[ \t]*\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" nil t) (setq dns-servers) (list (match-string 1)))) returns a (nil) Ah... spotted! It should look like this: (when (executable-find "nslookup") (with-temp-buffer (call-process "nslookup" nil t nil "localhost") (goto-char (point-min)) (re-search-forward "^Address:[ \t]*\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" nil t) (setq dns-servers) (list (match-string 1))))