From: Don Saklad <dsaklad@gnu.org>
Subject: rmail in emacs
Date: Fri, 02 Jan 2004 04:55:13 GMT [thread overview]
Message-ID: <5iad57uf5s.fsf@fencepost.gnu.org> (raw)
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)))
next reply other threads:[~2004-01-02 4:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-02 4:55 Don Saklad [this message]
2004-01-02 9:19 ` rmail in emacs Eli Zaretskii
2004-01-02 12:34 ` Alfred M. Szmidt
[not found] ` <mailman.867.1073039087.868.help-gnu-emacs@gnu.org>
2004-01-09 15:27 ` Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5iad57uf5s.fsf@fencepost.gnu.org \
--to=dsaklad@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.