ZMailer update patch

Julian Field mailscanner at ecs.soton.ac.uk
Wed May 28 21:32:45 IST 2003


On line 82 of ZMailer.pm, do you really mean
$this->{TFileRegexp} = '^tf-' . $$ . '-(\\d]+)$';
and not
$this->{TFileRegexp} = '^tf-' . $$ . '-([\\d]+)$';

Possible missing '[' ?

At 20:43 28/05/2003, you wrote:
>El 27 May 2003 a las 11:21, Julian Field escribió:
>
> > Can you mail me the patch please? (Or just mail me up to date ZM*.pm files,
> > that would be easier)
>Find it enclosed in this message.
>
> >
> > At 16:47 26/05/2003, you wrote:
> > >Hi Julian,
> > >
> > >I did a small modification to the zmailer code in MailScanner.
> > >
> > >ZMailer's router wants its queue file names to be the files' inode 
> number. As
> > >MailScanner creates a new queue file (in order to put the new headers),
> > >MailScanner::ZMailer::HDOutFileName does a 'stat' of the new file to 
> find out
> > >the new file name, and then MailScanner::ZMDiskStore::WriteHeader does a
> > >rename to this new file.
> > >
> > >This is working OK from the start, but there is no logging of such a 
> renaming
> > >happening, and the new file name (which is used as message id) is never
> > >recorded.
> > >
> > >I did a very small patch that doesn't modify outside behaviour, but 
> changes a
> > >little the way where the new filename is built, which allows me to do a
> > >MailScanner::Log::InfoLog for every message, so everyone can track the
> > >messages thru smtpserver/mailscanner/router _and_ I also add a new 
> attribute
> > >to the message object with this ($message->{newid}) so I can have it at my
> > >"Always Looked Up Last" routine...
> > >
> > >It is now in production and working fine.
>
>--
>Mariano Absatz
>El Baby
>----------------------------------------------------------
>Unix is very simple, but it takes a genius to understand the simplicity.
>                      -- Dennis Ritchie
>
>

-- 
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support




More information about the MailScanner mailing list