editing email message
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. ## the email message look like below: -------------------------------- Multiple Vendor ProFTPD 1.3.3c mod_sql "sql_prepare_where()" Buffer Overflow Vulnerability Severity:High CVSS Score(V2):7.3 Version:1 ID#:630501 description:... Sources: ... Analysis: ... Detection: version 4 Exploit: none SAP Afaria 6.0 SP1 Unspecified Cross-Site Scripting (XSS) Vulnerability iDefense Severity:High CVSS Score(V2):3.7 Version:1 ID#:630684 description:... Sources: ... Analysis: ... Detection: version 6 only Exploit: none TIBCO Software Inc. ActiveMatrix Runtime Ccomponent JMX Connections Unspecified Vulnerability iDefense Severity:High CVSS Score(V2):7.4 Version:1 ID#:630023 description:... Sources: ... Analysis: ... Detection: All versions Exploit: publicly available. |
Quote:
|
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)?
|
You could filter for one unprivileged user account, yes and procmail can work on a copy of the message.
|
All times are GMT -5. The time now is 03:37 AM. |