From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48344 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: new spam functionality added Date: Sun, 29 Dec 2002 23:48:35 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: owner-ding@hpc.uh.edu Message-ID: References: <87y9brejam.fsf@mail.paradoxical.net> <873ctztyth.fsf@mail.paradoxical.net> <87bs8nsh7g.fsf@mail.paradoxical.net> <87fzxziifw.fsf@wesley.springies.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041224530 16259 80.91.224.249 (30 Dec 2002 05:02:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Dec 2002 05:02:10 +0000 (UTC) Return-path: Original-Received: from util1.math.uh.edu ([129.7.128.22]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Ss40-0004E6-00 for ; Mon, 30 Dec 2002 06:02:09 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by util1.math.uh.edu with esmtp (Exim 4.10) id 18SrtF-00070E-00; Sun, 29 Dec 2002 22:51:01 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 29 Dec 2002 22:50:15 -0600 (CST) Original-Received: from ns1.beld.net (ns1.beld.net [208.229.215.81]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id WAA11631 for ; Sun, 29 Dec 2002 22:49:50 -0600 (CST) Original-Received: from heechee.beld.net (dhcp-0-30-bd-1-93-b2.cpe.beld.net [24.233.65.6]) by ns1.beld.net (Postfix) with ESMTP id 123333B8FD for ; Sun, 29 Dec 2002 23:48:28 -0500 (EST) Original-To: ding@hpc.uh.edu X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: ding@hpc.uh.edu In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 30 Dec 2002 05:12:27 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48344 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48344 On Mon, 30 Dec 2002, larsi@gnus.org wrote: > Ted Zlatanov writes: > >> There doesn't seem to be a way to do all of these in one shot in >> dig.el; should I write the corresponding code in spam.el or should >> dig.el be extended to have a dig-dns-query function analogous to >> dns-query in dns.el? > > I think the latter would be best. If the interface to this > dig-dns-query (or perhaps just `dig-query') was the same as > `dns-query', that would be nice -- the user could then just switch > around these functions at will. I still can't use dns.el with my firewall, I suspect it simply does not like TCP DNS queries. Strange. I only need to check whether the following looks OK to you before adding it to dig.el: (defun dig-query (domain &optional query-type query-class query-option dig-option server) "Query addresses of a DOMAIN using dig, by calling `dig-invoke' and `dig-extract-rr'. Optional arguments are passed to `dig-invoke' and `dig-extract-rr'. Returns nil for a nonexistent domain." (let ((buffer (dig-invoke domain query-type query-class query-option dig-option server))) (when buffer (switch-to-buffer buffer) (setq digger (dig-extract-rr domain query-type query-class)) (kill-buffer buffer) digger))) It seems to work just fine here for existent and nonexistent domains. I don't want to do the extra work of converting the DIG response into the query-dns format, it's fine as a string for the purposes of spam.el which only cares if it's nil or not. Ted