Mail
Boaz Ben-Zvi
boaz at trenco.uucp
Sat Aug 12 08:36:38 AEST 1989
In article <26653 at amdcad.AMD.COM> srini at diablo.amd.com () writes:
>
> I would like to know if it is possible to filter outa person's
> mail from reaching me keeping all other things intact.
> That is, say, I don't wish to receive the mails from a person
> X. I know X's address. Now how do I see that even if X attempts
> to send me a mail, i don't receive it. Precisely, what I would
> like to do is send it back to person X with a message saying
> "Not received."
The MH (message handling) system comes with a command called mhook
(MH receive-mail hooks), and you can do "man mhook" to know more.
The idea behind it is setting your .forward file to have the line:
"| <program>"
where <program> is a program to which the incoming mail is streamed via
the standard input. You can try and write your program or use MH's. MH
comes with a program named "slocal" that checks fields (like To:, Cc:)
in the message and decides what to do based on some configuration you
give it.
-- Boaz.
Boaz Ben-Zvi
Boaz.pa at xerox.com
(415) 494-4839
More information about the Comp.unix.questions
mailing list