On 27/10/03 08:13 +0530, Payal Rathod wrote: > 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. Well, LIP would actually be a better place for this.
> 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? It sets a default value, which does not affect the mail quarantine. It could be set to anything else as well. > > 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]. Correct. Also, grep ^Subject\:\ $i saves a process. > > more $i | grep "Scanning part" > > more $i | grep "executable found" > > Don't know about this keywords, maybe Sophos specific. Using egrep here would be even nicer. > > opt='n' > > read opt > > Again why opt='n' and then read opt Always initialise variables. Devdas Bhagat ------------------------------------------------------- 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
