ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I got an daily email outline the vulnerabilities of software/OS/hardware. I have a catalog listing some items of interests. Everyday i have to go through the email and manually look up item of interests and resend out the filtered email message.
What I try to do here is to have my daily vulnerabilities email arrive to my inbox and another copy with massaged content generate in my mailbox so i don't have to manually change the email message everyday.
my apology that didn't supply full information. The important item of email message was in the original post.
The look up database has field such as "software name" , "software version" , "vulnerability severity= medium or HIGH", "exploit public available" , "remote exploit", "0day".
So each item contain some of above mentioned, I would like the resultant email to have the text to become capital Or marked with * just to stand out.
For email item has none of above, either tag with a name or truncate off from the message.
eg. SAP on database mark as version 5. Then I wouldn't be interested on the rest of SAP item's details. Simply skip to next item in the email.
I can write some simple bash script but I am not sure what linux package to use to achieve email message editing( in batch fashion).
No apologies necessary. When your email arrives at your MTA arrives often a local LDA like 'procmail' will be used to filter things before delivering. Procmail "recipes" can modify messages and can use any regular system tools like sed, grep etc to modify the body of the message. I wouldn't call that "editing" but it should be possible.
do i need to have system admin level privilege? is it possible to do it on only my user account or it has to be system wide configuration? Also, does that mean i can still retain the message format (html or whatever format email arrive)?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.