+2002-06-04 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * spam.el (spam-point-at-eol): New alias.
+ (spam-parse-whitelist): Use it.
+
2002-06-03 Simon Josefsson <jas@extundo.com>
* nnmail.el (nnmail-mail-splitting-decodes): New variable.
"The location of the whitelist.
The file format is one regular expression per line.
The regular expression is matched against the address.")
-
+
(defvar spam-blacklist (expand-file-name "blacklist" spam-directory)
"The location of the blacklist.
The file format is one regular expression per line.
(interactive "sAddress: ")
(spam-enter-whitelist address t))
+(eval-and-compile
+ (defalias 'spam-point-at-eol (if (fboundp 'point-at-eol)
+ 'point-at-eol
+ 'line-end-position)))
+
(defun spam-parse-whitelist (&optional blacklist)
(let ((file (if blacklist spam-blacklist spam-whitelist))
contents address)
(with-temp-buffer
(insert-file-contents file)
(while (not (eobp))
- (setq address (buffer-substring (point) (point-at-eol)))
+ (setq address (buffer-substring (point) (spam-point-at-eol)))
(forward-line 1)
(unless (zerop (length address))
(setq address (regexp-quote address))