Gnus development mailing list
 help / color / mirror / Atom feed
From: Jesper Harder <harder@ifa.au.dk>
Subject: Re: CRM114 Mailfilter and spam.el
Date: Sun, 04 Apr 2004 03:59:53 +0200	[thread overview]
Message-ID: <m3r7v4qz8m.fsf@defun.localdomain> (raw)
In-Reply-To: <877jwwfwa6.fsf@virgil.koldfront.dk> (Adam =?iso-8859-1?q?Sj=F8gren's?= message of "Sun, 04 Apr 2004 01:59:13 +0200")

asjo@koldfront.dk (Adam Sjøgren) writes:

> + 		 (if db `("", db) `("")))) ; asjo: I don't know how to do this right.
> +                                            ;       I'd like to add --fileprefix=db if
> +                                            ;       db is set.

Do you mean:

(defun spam-check-crm114 (&optional score)
  "Check the CRM114 Mailfilter back end for the classification of this message."
   (let ((article-buffer-name (buffer-name))
 	(db spam-crm114-database-directory))
     (with-temp-buffer
       (let ((temp-buffer-name (buffer-name)))
	 (with-current-buffer article-buffer-name
	   (apply 'call-process-region
		  (point-min) (point-max)
		  spam-crm114-path
		  nil temp-buffer-name nil
		  (when db (list (concat "--fileprefix=" db)))))
	 (spam-check-crm114-headers score)))))

[untested!]

> + (defcustom spam-crm114-path (executable-find "mailfilter.crm")
> +   "File path of the CRM114 Mailfilter executable program."
> +   :type '(choice (file :tag "Location of CRM114 Mailfilter")
> + 		 (const :tag "CRM114 Mailfilter is not installed"))
> +   :group 'spam-crm114)

This isn't a very good name[1].  I think `spam-crm114-program' would
be clearer.


[1] From the GNU coding standards:

  Please do not use the term ``pathname'' that is used in Unix
  documentation; use ``file name'' (two words) instead.  We use the
  term ``path'' only for search paths, which are lists of directory
  names.
-- 
Jesper Harder                                <http://purl.org/harder/>



  reply	other threads:[~2004-04-04  1:59 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-01 20:54 Adam Sjøgren
2004-04-02  6:22 ` Kai Grossjohann
2004-04-02 16:04   ` Adam Sjøgren
2004-04-03 13:28     ` Kai Grossjohann
2004-04-03 14:01       ` Adam Sjøgren
2004-04-05 13:21         ` Ted Zlatanov
2004-04-02 16:06   ` Adam Sjøgren
2004-04-02 17:14     ` Ted Zlatanov
2004-04-03 21:10       ` Adam Sjøgren
2004-04-03 21:19         ` Adam Sjøgren
2004-04-03 21:48           ` Adam Sjøgren
2004-04-03 21:58             ` Adam Sjøgren
2004-04-03 13:29     ` Kai Grossjohann
2004-04-03 13:49       ` Adam Sjøgren
2004-04-06  8:12         ` Kai Grossjohann
2004-04-06 21:40           ` Adam Sjøgren
2004-04-02 16:10   ` Jody Klymak
2004-04-02 17:07   ` Ted Zlatanov
2004-04-02 17:06 ` Ted Zlatanov
2004-04-02 17:26   ` Adam Sjøgren
2004-04-02 17:44     ` Ted Zlatanov
2004-04-03 14:22       ` Adam Sjøgren
2004-04-03 14:24         ` Adam Sjøgren
2004-04-03 23:59 ` Adam Sjøgren
2004-04-04  1:59   ` Jesper Harder [this message]
2004-04-04 13:07     ` Adam Sjøgren
2004-04-05 13:24       ` Ted Zlatanov
2004-04-05 15:50         ` Jesper Harder
2004-04-06 21:36       ` Adam Sjøgren
2004-05-20 18:39         ` Ted Zlatanov
2004-05-20 19:19           ` Adam Sjøgren
2004-05-22 23:44             ` Lars Magne Ingebrigtsen
2004-05-23 13:44               ` Adam Sjøgren
2004-05-26 16:23             ` Ted Zlatanov
2004-05-26 20:30               ` Adam Sjøgren

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=m3r7v4qz8m.fsf@defun.localdomain \
    --to=harder@ifa.au.dk \
    /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).