procmail
[Top] [All Lists]

calling procmail from /etc/aliases

1995-11-08 23:46:28
I have an alias in /etc/aliases and I'd like all mail sent to it to
be processed by a procmail script and I'm wondering what is the best
thing to use for the alias.  Since I cannot edit /etc/aliases myself,
I'd like to use something that is as flexible as possible so I don't
need to bug the sys admins after it's set up.  Should I use the same
thing that works in the .forward or will something like this work:

foo: "|/usr/local/bin/procmail /home/nancym/foo/.procmailrc"

I'm leaving out -f- because according to the man pages I can
simulate that with a recipe.  Do I need to put in IFS=' ', exec,
etc. in the alias?

Hmmmmm, I just realized that maybe I should just have it pipe the
message to a script, e.g.:

foo: "|/home/nancym/bin/procfoo"

and then procfoo will invoke procmail and I'll be able to edit 
procfoo whenever I want.  What do you think of that?


Thanks for any words of wisdom on this!
Nancy



<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<*<
            @..@            Nancy McGough           /\_/\
           (----)           Infinite Ink           ( o.o )
          ( >__< )    http://www.jazzie.com/ii/     > ~ <

<Prev in Thread] Current Thread [Next in Thread>