From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Adam Cohen Newsgroups: gmane.emacs.help Subject: Re: Advice on adding whitelisting to Mail mode Date: Sat, 18 Dec 2004 17:36:27 -0500 Message-ID: References: Reply-To: Adam Cohen NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1103409542 2152 80.91.229.6 (18 Dec 2004 22:39:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Dec 2004 22:39:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 18 23:38:26 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 1CfnDH-0005oA-00 for ; Sat, 18 Dec 2004 23:38:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CfnNU-0002xB-8x for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Dec 2004 17:48:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CfnNG-0002vH-C8 for help-gnu-emacs@gnu.org; Sat, 18 Dec 2004 17:48:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CfnNF-0002uY-4p for help-gnu-emacs@gnu.org; Sat, 18 Dec 2004 17:48:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CfnNE-0002tz-Hn for help-gnu-emacs@gnu.org; Sat, 18 Dec 2004 17:48:28 -0500 Original-Received: from [64.233.170.202] (helo=rproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CfnBc-0004kV-D3 for help-gnu-emacs@gnu.org; Sat, 18 Dec 2004 17:36:28 -0500 Original-Received: by rproxy.gmail.com with SMTP id i8so55547rne for ; Sat, 18 Dec 2004 14:36:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Z6W/WaVX7sdbfOAmUjADYEKK0Ma7VKGJsS0RzdJRD5EwWLtwkuAWinUDRjUwVdRr2JyGHEJxQvAcE+0kOfuZiclFU9GlDF8MIcypcGi4L6xtMcbr67MhLfJP5Ez7uqaJrFBS6iM+OBfwidCIOcVlkbgjCsyrZUJs0XT/jhxAtuA= Original-Received: by 10.38.208.29 with SMTP id f29mr30189rng; Sat, 18 Dec 2004 14:36:27 -0800 (PST) Original-Received: by 10.38.97.31 with HTTP; Sat, 18 Dec 2004 14:36:27 -0800 (PST) Original-To: help-gnu-emacs@gnu.org In-Reply-To: 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:22854 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22854 if you're looking for whitelisting or challenge-response at the server level, check out Tagged Message Delivery Agent at http://www.tmda.net, it's very good (although I'm sure I'll get flamed for mentioning it, since many people hate challenge-response anti-spam mechanisms). Although, since I've been using this, my spam has dropped from hundreds a day ot 0, so I can't argue with that. Adam On Sat, 18 Dec 2004 19:33:31 +0000 (UTC), J Krugman wrote: > > > 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. > > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >