Function: gnus-score-file-name

gnus-score-file-name is an autoloaded and byte-compiled function defined in gnus-score.el.gz.

Signature

(gnus-score-file-name NEWSGROUP &optional SUFFIX)

Documentation

Return the name of a score file for NEWSGROUP.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-score.el.gz
(defun gnus-score-file-name (newsgroup &optional suffix)
  "Return the name of a score file for NEWSGROUP."
  (let ((suffix (or suffix gnus-score-file-suffix)))
    (nnheader-translate-file-chars
     (cond
      ((or (null newsgroup)
	   (string-equal newsgroup ""))
       ;; The global score file is placed at top of the directory.
       (expand-file-name suffix gnus-kill-files-directory))
      ((gnus-use-long-file-name 'not-score)
       ;; Append ".SCORE" to newsgroup name.
       (expand-file-name (let ((name (gnus-newsgroup-savable-name newsgroup)))
                           (if (string= "" suffix) name (concat name "." suffix)))
			 gnus-kill-files-directory))
      (t
       ;; Place "SCORE" under the hierarchical directory.
       (expand-file-name (concat (gnus-newsgroup-directory-form newsgroup)
				 "/" suffix)
			 gnus-kill-files-directory))))))