From: David Z Maze <dmaze@MIT.EDU>
Subject: Re: spam-get-ifile-database-parameter returns inappropriate value
Date: Thu, 09 Jan 2003 15:33:12 -0500 [thread overview]
Message-ID: <y68fzs2vzav.fsf@multics.mit.edu> (raw)
In-Reply-To: <4nfzs2kroj.fsf@lockgroove.bwh.harvard.edu> (Ted Zlatanov's message of "Thu, 09 Jan 2003 15:13:16 -0500")
[-- Attachment #1: Type: text/plain, Size: 319 bytes --]
Ted Zlatanov <tzz@lifelogs.com> writes:
> 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. You need to make the same change in
spam-ifile-register-with-ifile:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1203 bytes --]
--- spam.el.orig Thu Jan 9 15:29:38 2003
+++ spam.el Thu Jan 9 15:31:24 2003
@@ -588,13 +588,17 @@
"Register an article, given as a string, with a category.
Uses `gnus-newsgroup-name' if category is nil (for ham registration)."
(when (stringp article-string)
- (let ((category (or category gnus-newsgroup-name)))
+ (let ((category (or category gnus-newsgroup-name))
+ (db-param (spam-get-ifile-database-parameter)))
(with-temp-buffer
(insert-string article-string)
- (call-process-region (point-min) (point-max) spam-ifile-path
- nil nil nil
- "-h" "-i" category
- (spam-get-ifile-database-parameter))))))
+ (if db-param
+ (call-process-region (point-min) (point-max) spam-ifile-path
+ nil nil nil
+ "-h" "-i" category db-param)
+ (call-process-region (point-min) (point-max) spam-ifile-path
+ nil nil nil
+ "-h" "-i" category))))))
(defun spam-ifile-register-spam-routine ()
(spam-generic-register-routine
[-- Attachment #3: Type: text/plain, Size: 167 bytes --]
--
David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/
"Theoretical politics is interesting. Politicking should be illegal."
-- Abra Mitchell
next prev parent reply other threads:[~2003-01-09 20:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-09 19:36 David Z Maze
2003-01-09 20:13 ` Ted Zlatanov
2003-01-09 20:33 ` David Z Maze [this message]
2003-01-09 21:02 ` Ted Zlatanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=y68fzs2vzav.fsf@multics.mit.edu \
--to=dmaze@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).