From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Don Saklad Newsgroups: gmane.emacs.help Subject: rmail in emacs Date: Fri, 02 Jan 2004 04:55:13 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5iad57uf5s.fsf@fencepost.gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073019679 27060 80.91.224.253 (2 Jan 2004 05:01:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Jan 2004 05:01:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 02 06:01:16 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AcHQx-0002eE-00 for ; Fri, 02 Jan 2004 06:01:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AcINM-0002sV-UK for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jan 2004 01:01:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!newsfeed.mathworks.com!nntp-out.monmouth.com!newspeer.monmouth.com!newspeer1.nwr.nac.net!feedme.ziplink.net!petpeeve.ziplink.net!not-for-mail Original-Sender: dsaklad@gnu.org Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Lines: 51 Original-NNTP-Posting-Host: 199.232.76.164 Original-X-Trace: petpeeve.ziplink.net 1073019313 199.232.76.164 (Thu, 01 Jan 2004 23:55:13 EST) Original-NNTP-Posting-Date: Thu, 01 Jan 2004 23:55:13 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:119709 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15651 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15651 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)))