From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: J Krugman Newsgroups: gmane.emacs.help Subject: Advice on adding whitelisting to Mail mode Date: Sat, 18 Dec 2004 19:33:31 +0000 (UTC) Organization: (NONE) Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1103398533 21060 80.91.229.6 (18 Dec 2004 19:35:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Dec 2004 19:35:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 18 20:35:00 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CfkLl-00061r-00 for ; Sat, 18 Dec 2004 20:34:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CfkVx-0007Ye-JJ for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Dec 2004 14:45:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!newsread.com!newsprint.newsread.com!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader2.panix.com 1103398411 25244 166.84.1.3 (18 Dec 2004 19:33:31 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sat, 18 Dec 2004 19:33:31 +0000 (UTC) X-No-Confirm: yes Fcc: ~/RMAIL User-Agent: nn/6.6.5 Original-Xref: shelby.stanford.edu gnu.emacs.help:127405 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22852 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22852 I recently read a booklet-length tutorial on Emacs Lisp, and now I have a little project by way of exercise. The idea is to add whitelisting support to Mail mode. "Whitelisting" is the strategy of selecting the email messages one wants (and trashing or at least quarantining the rest), instead of trying to stop the ones one doesn't want. The "whitelist" describes those messages one wants. I want to add functions to Mail mode (and maybe RMAIL as well) to simplify the process of maintaining a whitelist. The whitelist will be in the form of procmail recipes contained in ~/.procmailrc (yes, OS == Unix). I'm a bit uncertain on how to start this. I've done a lot of programming before, but I've never extended an Emacs mode, plus this project entails parsing, modifying, and writing out a text file, which I've never even seen done in Emacs Lisp. Can someone point me to source code I can study to learn how to structure my code, and how to do the basic tasks of parsing/modifying/re-writing a text file? BTW, if someone has already written the code to add whitelisting support to Mail mode, I'd like to know about that too! Thanks! jill -- To s&e^n]d me m~a}i]l r%e*m?o\v[e bit from my a|d)d:r{e:s]s.