can a user override etc/mail.rc ignore directive

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

can a user override etc/mail.rc ignore directive

Douglas Maus
When using mail, some header fields are not shown based on
/etc/mail.rc: ignore <headers> (system)
and
~/.mailrc: ignore <headers> (user)

Even if a user removes the 'ignore' lines from his/her ~/.mailrc
the system /etc/mail.rc 'ignore' lines still are in effect.

I know a user can 'Type' (with capital T) to show all headers, but
is there an easy way for a user to remove all the system ignored headers?
(That is, clear the ignore header list)

(Googling "mailrc and ignore" has all the man pages, but doesn't seem
to find any pages that address this problem. Seems that maybe
the Sun version of 'mail' includes an 'unignore' directive which
clears out the ignore list, but this doesn't work on OpenBSD )

Thought maybe I am missing something simple.

Thanks for any help.

Reply | Threaded
Open this post in threaded view
|

Re: can a user override etc/mail.rc ignore directive

William Boshuck
On Sun, Mar 14, 2010 at 05:43:13PM -0400, Douglas Maus wrote:

> When using mail, some header fields are not shown based on
> /etc/mail.rc: ignore <headers> (system)
> and
> ~/.mailrc: ignore <headers> (user)
>
> Even if a user removes the 'ignore' lines from his/her ~/.mailrc
> the system /etc/mail.rc 'ignore' lines still are in effect.
>
> I know a user can 'Type' (with capital T) to show all headers, but
> is there an easy way for a user to remove all the system ignored headers?
> (That is, clear the ignore header list)

Look for the retain command under SUMMARY in mail(1).
That should enable you to do what you want.

-wb