Replacing original(s) with *.rpmnew

Julian Field mailscanner at ecs.soton.ac.uk
Sat Mar 8 13:14:51 GMT 2003


At 23:46 07/03/2003, you wrote:
>Hello,
>
>The other day I upgraded from 4.11-x to 4.13-3. As expected, Julian's
>upgrade script simplified the process. However, I noticed several
>reports had been replaced. While replacing the originals with the
>*.rpmnew files, I figured there must be a better way to do it than "mv
>filename.rpmnew filename" ; rm filename.rpmnew" for each file.

It only puts in an rpmnew if you have modified or otherwise changed the
original file (loading it into an editor and saving it unchanged will
modify the datestamp, which is enough).

>There must be a way to do all *.rpmnew files in a directory with a short
>shell script or compound command. Can someone give me a hand with this?
>It would only be usefuly for files or reports I haven't changed, but
>could potentially save me a lot of keyboard tapping.


   for NEW in *.rpmnew
   do
     echo $NEW ...
     F=`echo $NEW | sed -e 's/\.rpmnew//'`
     [ -f $F ] && mv -f $F ${F}.rpmold
     mv -f $NEW $F
   done
   exit



>Thanks in advance!
>
>Sincerely,
>Nathan Johanson
>nathan at tcpnetworks.net
>
>
>-----Original Message-----
>From: Julian Field [mailto:mailscanner at ECS.SOTON.AC.UK]
>Sent: Friday, March 07, 2003 4:22 AM
>To: MAILSCANNER at JISCMAIL.AC.UK
>Subject: Re: MailScanner and Horde/IMP
>
>
>At 23:23 07/03/2003, you wrote:
> >Hi,
> >        I installed MailScanner on my RedHat 7.3 box running Horde/IMP
>cvs
> >version.
> >When I send mails through Outlook or Eudora , the mails get scanned by
> >MailScanner, does both Anti-Virus and Anti-Spam checks.
> >But when I send through Horde/IMP mailscanner does not get executed.
>The
> >mails goes without a scan via sendmail.
> >
> >Why is this happening?
> >
> >My horde configuration conf.php
> >
> >$conf['mailer']['type'] = 'sendmail';
> >$conf['mailer']['params'] = array();
> >  $conf['mailer']['params'] = array('sendmail_path' =>
>'/usr/sbin/sendmail');
>
>You either need to upgrade to a more recent version of sendmail, or else
>set this instead of your 3 lines above:
>
>$conf['mailer']['type'] = 'smtp';
>$conf['mailer']['params'] = array();
>$conf['mailer']['params'] = array('host' => 'localhost');
>
>This will force IMP to talk SMTP to the host it is running on, which
>will
>get all its mail scanned.
>--
>Julian Field
>www.MailScanner.info
>MailScanner thanks transtec Computers for their support

--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20030308/5050ae82/attachment.html


More information about the MailScanner mailing list