On Wed, Sep 15, 1999 at 11:24:31PM +0200, Gaal Yahas wrote:
> > > 2 - filters that can cause any of the following actions - copy or
> > > move messages to a different mailbox, forward and/or delete a
> > > message, copy a message to an external (text) file, set the
> > > read/unread status, send a canned reply, add sender to address book,
> > > inform me that a message matching a particular filter has arrived,
> > > run a program or script.
> >
> > procmail is so flexible it used to work as a contortionist
> > before I hired it.
> >
> > > 3 - filters should work on incoming or outgoing messages or both
> >
> > Incoming: easy
> > Outgoing: should be doable, as there is a hook to control the
> > command that sends mail, but I've not done this myself nor seen
> > it done. What filters do you have in mind?
>
> Sorry about the self follow-up, but I think I understand what
> you were thinking of now :-)
>
> Yes, this should definitely be doable, even with a different
> filter set than the incoming mail.
>
> Instead of 'set sendmail="/usr/lib/sendmail -oi -oem"' or similar
> in your mailer's .rc file, you put a wrapper that calls both
> procmail and your MTA on the outgoing mail.
Or alternatively alter $record in your send-hook or folder-hook or
whatever. They're very flexible as well and can be just enough so you
don't need procmail.
--
Alex Shnitman | http://www.debian.org
[EMAIL PROTECTED], [EMAIL PROTECTED] +-----------------------
http://alexsh.hectic.net UIN 188956 PGP key on web page
E1 F2 7B 6C A0 31 80 28 63 B8 02 BA 65 C7 8B BA
Using today's server requirements, Linux is a credible alternative to
commercial developed servers in many, high volume applications.
-- Internal Microsoft memo
PGP signature