From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49007 Path: main.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: spam-get-ifile-database-parameter returns inappropriate value Date: Thu, 09 Jan 2003 14:36:52 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042140998 31573 80.91.224.249 (9 Jan 2003 19:36:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2003 19:36:38 +0000 (UTC) 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 18WiTl-0008D3-00 for ; Thu, 09 Jan 2003 20:36:37 +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 18WiUJ-0008SE-00; Thu, 09 Jan 2003 13:37:11 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 09 Jan 2003 13:38:06 -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 NAA19126 for ; Thu, 9 Jan 2003 13:37:56 -0600 (CST) Original-Received: (qmail 32920 invoked by alias); 9 Jan 2003 19:36:56 -0000 Original-Received: (qmail 32914 invoked from network); 9 Jan 2003 19:36:55 -0000 Original-Received: from fort-point-station.mit.edu (18.7.7.76) by 66.230.238.6 with SMTP; 9 Jan 2003 19:36:55 -0000 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by fort-point-station.mit.edu (8.9.2/8.9.2) with ESMTP id OAA02089 for ; Thu, 9 Jan 2003 14:36:54 -0500 (EST) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by central-city-carrier-station.mit.edu (8.9.2/8.9.2) with ESMTP id OAA23037; Thu, 9 Jan 2003 14:36:54 -0500 (EST) Original-Received: from multics.mit.edu (MULTICS.MIT.EDU [18.187.1.73]) by melbourne-city-street.mit.edu (8.9.2/8.9.2) with ESMTP id OAA20530; Thu, 9 Jan 2003 14:36:53 -0500 (EST) Original-To: ding@gnus.org User-Agent: Gnus/5.090011 (Oort Gnus v0.11) XEmacs/21.4 (Artificial Intelligence, sparc-sun-solaris2.8) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49007 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49007 `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... -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell