From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23242 invoked from network); 3 Jul 2001 14:56:13 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Jul 2001 14:56:13 -0000 Received: (qmail 7223 invoked by alias); 3 Jul 2001 14:54:56 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3992 Received: (qmail 7209 invoked from network); 3 Jul 2001 14:54:56 -0000 Date: Tue, 3 Jul 2001 10:55:46 -0400 (EDT) From: "William H. Magill" Message-Id: <200107031455.f63Etkx05630@falstaff.isc-net.upenn.edu> To: gt4556a@prism.gatech.edu CC: zsh-users@sunsite.dk Subject: Re: 2nd mail question :) > Date: Tue, 26 Jun 2001 23:34:35 -0400 > From: =?iso-8859-1?Q?J=F6rg_Ziefle?= > > Does anybody see a way to execute an external program when new mail has > come in? Events, for example? > > What I wanna do is when new mail arrives, I want to have a little > program executed that starts my mailer with the right folder > (user-specified if several folders have received mail). > What you need is "procmail." It does exactly what you want, plus lots more. It is a mail filter or local delivery agent. You can sort mail via a .procmailrc into all kinds of incoming mail boxes, run programs on them, etc. -- www.tru64unix.compaq.com www.tru64.org comp.unix.tru64 T.T.F.N. William H. Magill Senior Systems Administrator Information Services and Computing (ISC) University of Pennsylvania Internet: magill@isc.upenn.edu magill@acm.org http://www.isc-net.upenn.edu/~magill/