On Wed, Oct 22, 2003 at 10:44:12AM +0000, Krishna Rao SN wrote:
> Hi Lists,
> 
> I am using Mailmonitor from Sophos on RH Linux. The quarantined messages 
[...]

Is it Ok to discuss the script here? Might improve my scripting ability.
Or I can mail Krishna Rao offlist.

> clear
> cd /var/spool/mmsmtp/quarantine
> files=`ls -1 |wc -l`
> if [ "$files" -gt "0" ];
> then
>   for i in qrt.*
>   do
>   echo
>   echo
>   echo "Enter y to release, q to quit or <Enter> to Skip"
>   opt='n'

Why opt='n', what purpose it will serve?

>   echo $i
>   grep "Virus identity found" $i >/dev/null 2>&1
>   if [ $? != 0 ]; then
>      more $i | grep "Subject:"

Actually it should scan for "^Subject: " right? And that too only from
the headers. [Hint: look for the first blank line].

>      more $i | grep "Scanning part"
>      more $i | grep "executable found"

Don't know about this keywords, maybe Sophos specific.

>   opt='n'
>   read opt

Again why opt='n' and then read opt

I have still a couple of doubts but that later.


With warm regards,
-Payal

-- 
"Visit GNU/Linux Success Stories"
http://payal.staticky.com
Guest-Book Section Updated.


-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to