Operating System - HP-UX
1833178 Members
2831 Online
110051 Solutions
New Discussion

Re: Setting Rules in Mailx

 
SOLVED
Go to solution
Jeff Paciolla_2
Occasional Advisor

Setting Rules in Mailx

Is there anyway to set automated rules in mailx? i.e. any time I get an email from user john doe, do "xyz"

Thanks
Jeff
2 REPLIES 2
Kasper Haitsma
Trusted Contributor
Solution

Re: Setting Rules in Mailx

Hello Jeff,

Mailx itself, cannot perform any sorting or filing.

What you are looking for, is procmail(1). With procmail installed, you can archive incomming mail on a system wide basis (the so called procmail mailer definition should the be added to sendmail.cf) and on a userid based level.
The user can (through so called recipe's) file/forward/discard emails, based on virtually any character combination in the message header or body.

procmail is part of the product: HP-UX InterNet Express
please search http://software.hp.com for this product.

HTH

Kasper
HP support engineer for sendmail, OpenMail, OVO/u
It depends
Elmar P. Kolkman
Honored Contributor

Re: Setting Rules in Mailx

Depending on what you want, newmail could be a solution to what you want, though it doesn't filter on sender...
Every problem has at least one solution. Only some solutions are harder to find.