+2004-01-12 Teodor Zlatanov <tzz@lifelogs.com>
+
+ * 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 <kai.grossjohann@mci.com>
* message.el (message-expand-name): Use EUDC if the user uses
(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)