mailx - Is there a better way to ignore headers?
by mfoley from LinuxQuestions.org on (#5CCZ2)
I'm (still) using mailx 12.5. I am using the .mailrc directive ignore, eg:
Code:ignore X-MS-Has-Attach
ignore X-MS-TNEF-Correlator
ignore msip_labelsBut, every mail service seems have have its one set of not-very-interesting headers. Currently, I have 104 'ignores' in my config. Is there a way to either wildcard these, e.g:
Code:ignore X-Microsoft-*
ignore X-microsoft-or include only certain headers when reading a message using mailx, like a 'headerretain' directive? I've tried both wildcard styles shown with no luck.


Code:ignore X-MS-Has-Attach
ignore X-MS-TNEF-Correlator
ignore msip_labelsBut, every mail service seems have have its one set of not-very-interesting headers. Currently, I have 104 'ignores' in my config. Is there a way to either wildcard these, e.g:
Code:ignore X-Microsoft-*
ignore X-microsoft-or include only certain headers when reading a message using mailx, like a 'headerretain' directive? I've tried both wildcard styles shown with no luck.