[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rmail in emacs
From: |
Don Saklad |
Subject: |
rmail in emacs |
Date: |
Fri, 02 Jan 2004 04:55:13 GMT |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
1. What does the q represent mnemonically?... in setq
2. Would any of you nice folks out there knowledgeable about rmail in emacs
have any ideas, hints, tips or pointers about modifying for the better
any of the lines of this program?...
;; sa-spam-removal.el
;;
;; Copyright (c) 2003 Trevis J. Rothwell tjr at gnu.org
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
;; Before deleting a spam, this program copies it
;; to the file specified by `rmail-spam-file'.
(setq rmail-spam-file "RMAIL-SPAM")
(defun sa-spam-removal ()
(interactive)
(progn
(rmail-first-message)
(setq rtm rmail-total-messages)
(while (< rmail-current-message rtm)
(sa-spam-removal-main))))
(defun sa-spam-removal-main ()
(setq spam-stat (mail-fetch-field "X-Spam-Status"))
(if (not (eq spam-stat nil))
(if (eq (compare-strings spam-stat 0 2 "Yes" 0 2) t)
(progn
(rmail-output-to-rmail-file rmail-spam-file)
(rmail-delete-message)
(rmail-next-undeleted-message 1))
(rmail-next-undeleted-message 1))
(rmail-next-undeleted-message 1)))
- rmail in emacs,
Don Saklad <=