unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: J Krugman <jkrugman345@yahbitoo.com>
Subject: Advice on adding whitelisting to Mail mode
Date: Sat, 18 Dec 2004 19:33:31 +0000 (UTC)	[thread overview]
Message-ID: <cq20ma$oks$1@reader2.panix.com> (raw)





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.

             reply	other threads:[~2004-12-18 19:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-18 19:33 J Krugman [this message]
2004-12-18 22:36 ` Advice on adding whitelisting to Mail mode Adam Cohen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='cq20ma$oks$1@reader2.panix.com' \
    --to=jkrugman345@yahbitoo.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).