From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49009 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: spam-get-ifile-database-parameter returns inappropriate value Date: Thu, 09 Jan 2003 15:13:16 -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: <4nfzs2kroj.fsf@lockgroove.bwh.harvard.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042143299 9771 80.91.224.249 (9 Jan 2003 20:14:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2003 20:14:59 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Wj4s-0002XR-00 for ; Thu, 09 Jan 2003 21:14:58 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18Wj3W-0000K4-00; Thu, 09 Jan 2003 14:13:34 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 09 Jan 2003 14:14:29 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id OAA19237 for ; Thu, 9 Jan 2003 14:14:17 -0600 (CST) Original-Received: (qmail 34254 invoked by alias); 9 Jan 2003 20:13:17 -0000 Original-Received: (qmail 34249 invoked from network); 9 Jan 2003 20:13:17 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by 66.230.238.6 with SMTP; 9 Jan 2003 20:13:17 -0000 Original-Received: from lockgroove.bwh.harvard.edu (lockgroove [134.174.9.133]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h09KDGW10251; Thu, 9 Jan 2003 15:13:16 -0500 (EST) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h09KDG904146; Thu, 9 Jan 2003 15:13:16 -0500 (EST) Original-To: David Z Maze 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: David Z Maze , ding@gnus.org In-Reply-To: (David Z Maze's message of "Thu, 09 Jan 2003 14:36:52 -0500") User-Agent: Gnus/5.090011 (Oort Gnus v0.11) Emacs/21.2 (sparc-sun-solaris2.8) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49009 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49009 On Thu, 09 Jan 2003, dmaze@MIT.EDU wrote: > `spam-get-ifile-database-parameter' looks at > spam-ifile-database-path, and if it's non-nil, returns a string > command-line parameter for ifile that corresponds to this. This is > fine, except that if returns "" if the variable isn't set, and Emacs > dutifully passes that on as a parameter to ifile. So you get 'ifile > -q -c ""', ifile tries to read "" as a file, and exits immediately > rather than reading the message from stdin. It doesn't look like > ifile has a magic filename for "read the message from stdin", and I > don't know if call-process-* will drop nil arguments (I'd guess it > won't, though). This means the call to call-process-region there > needs to be a bit trickier to support a variable number of > arguments... I just did an if statement there instead. I didn't expect ifile to try to read an empty filename - serves me right for only testing the new parameter, not retroactively testing the old stuff. Thanks for the catch. Ted