My institution stream-edits incoming mail to add this text to the top of every email from external sources:
\n
[EXTERNAL to MyCompany received message]
\n
It makes the summary views unhelpful, since the first few lines of most emails are now boilerplate. Is there a way to run the incoming mail on the client end though sed
or something to conditionally remove the first few lines if they match this unwanted text?
Functionality as shown in https://unix.stackexchange.com/questions/113998/whats-the-safest-way-to-pipe-an-email-to-a-script-via-procmail/114067#114067 might be what I'm looking for
I use Mac Mail to access an Exchange mailbox.