Re: Modifying qmail-scanner-queue.pl archiveit funtion

Salvatore Toribio <[email protected]>
Newsgroups gmane.mail.qmail.scanner
Message-ID <a0624080bc1ed0f9776d4@[10.0.1.2]>
>Hi list:
>          Again i'm asking about this, sorry for the insistence but i
>need to some skilled Perl programmer to modify the archiveit function
>on a way that backups only non-quaratine messages, by now the
>functions works good, but it archive all kind of messages
>(non-quaratinable/quarantinable).
>

Well pibe, you do not really need a 'skilled' programmer to do 
that... it is really simple. If you search for the variable 
'$archiveit' you'd find that is only used in the routine 'sub 
cleanup' and following the code you could see the third 'if' 
statement that controls whether to archive or not a message. So 
change it from:

   if (!$archiveit) {

to:

   if (!$archiveit || $quarantine_description ) {

This might work, test it...

Regards

ST

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.