From f106764341ab2cff38101beee56ff9a0a2f96bf2 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Tue, 13 Jan 2004 01:00:57 +0000 Subject: [PATCH] Synch to No Gnus 200401122258. --- lisp/ChangeLog | 10 ++++++++++ lisp/gnus-srvr.el | 20 ++++++++++++++------ lisp/spam.el | 22 ++++++---------------- texi/ChangeLog | 6 ++++++ texi/gnus-ja.texi | 23 +++++++++++++---------- texi/gnus.texi | 22 ++++++++++++---------- 6 files changed, 61 insertions(+), 42 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 11dd36f..cb13757 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,13 @@ +2004-01-12 Jesper Harder + + * gnus-srvr.el (gnus-browse-foreign-server): Reduce consing. + +2004-01-12 Teodor Zlatanov + + * spam.el (spam-get-article-as-string): updated to use + gnus-request-article-this-buffer, much simpler + (spam-get-article-as-buffer): removed + 2004-01-12 Kai Grossjohann * message.el (message-expand-name): Use EUDC if the user uses diff --git a/lisp/gnus-srvr.el b/lisp/gnus-srvr.el index 9bb79ce..3de8794 100644 --- a/lisp/gnus-srvr.el +++ b/lisp/gnus-srvr.el @@ -797,18 +797,26 @@ gnus-method-to-server." (prog1 (1+ (point)) (insert (format "%c%7d: %s\n" - (let ((level (gnus-group-level - (concat prefix (setq name (car group)))))) + (let ((level + (if (string= prefix "") + (gnus-group-level (setq name (car group))) + (gnus-group-level + (concat prefix (setq name (car group))))))) (cond ((<= level gnus-level-subscribed) ? ) ((<= level gnus-level-unsubscribed) ?U) ((= level gnus-level-zombie) ?Z) (t ?K))) (max 0 (- (1+ (cddr group)) (cadr group))) - (decode-coding-string - name - (inline (gnus-group-name-charset method name)))))) - (list 'gnus-group name)))) + ;; Don't decode if name is ASCII + (if (and (fboundp 'detect-coding-string) + (eq (detect-coding-string name t) 'undecided)) + name + (decode-coding-string + name + (inline (gnus-group-name-charset method name))))))) + (list 'gnus-group name) + ))) (switch-to-buffer (current-buffer))) (goto-char (point-min)) (gnus-group-position-point) diff --git a/lisp/spam.el b/lisp/spam.el index 22c1dcf..4681d7b 100644 --- a/lisp/spam.el +++ b/lisp/spam.el @@ -788,22 +788,12 @@ Respects the process/prefix convention." (spam-ham-copy-or-move-routine nil groups))) (defun spam-get-article-as-string (article) - (let ((article-buffer (spam-get-article-as-buffer article)) - article-string) - (when article-buffer - (save-window-excursion - (set-buffer article-buffer) - (setq article-string (buffer-string)))) - article-string)) - -(defun spam-get-article-as-buffer (article) - (let ((article-buffer)) - (when (numberp article) - (save-window-excursion - (gnus-summary-goto-subject article) - (gnus-summary-show-article t) - (setq article-buffer (get-buffer gnus-article-buffer)))) - article-buffer)) + (when (numberp article) + (with-temp-buffer + (gnus-request-article-this-buffer + article + gnus-newsgroup-name) + (buffer-string)))) ;; disabled for now ;; (defun spam-get-article-as-filename (article) diff --git a/texi/ChangeLog b/texi/ChangeLog index 055c6b4..9e319cb 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,3 +1,9 @@ +2004-01-12 Teodor Zlatanov + + * gnus.texi (The problem of spam): fixed so many countries and + continents are used as examples of why blocking by country blocks + is a bad idea. + 2004-01-11 Simon Josefsson * gnus.texi (The problem of spam): Fix, reported by Cheng Gao diff --git a/texi/gnus-ja.texi b/texi/gnus-ja.texi index e282049..3566fcc 100644 --- a/texi/gnus-ja.texi +++ b/texi/gnus-ja.texi @@ -21361,16 +21361,19 @@ Spam $B$N=|5n(B (filtering) $B$X$N:G$bC1=c$J@\$N(B -$B_I2a$OM-1W$K$J$jF@$^$9!#(B +$B$P%V%k%,%j%"$+$i$?$/$5$s$N(B spam $B$,$d$C$FMh$k$N$J$i$P!"%V%k%,%j%"$N(B IP $B$+(B +$B$iMh$k$9$Y$F$N%a!<%k$r_I2a$9$l$P$h$m$7$$!#(B + +$B$3$l$O!";DG0$J$,$i@5Ev$JEE;R%a!<%k$r@\$N_I2a$OM-1W$K$J$jF@$^$9!#(B $B$b$&0l$D$NEE;R%a!<%k_I2a$X$N