Minor issue with ScamNailer updates.

Julian Field MailScanner at ecs.soton.ac.uk
Mon Dec 7 09:41:45 GMT 2009


%W starts a week on Monday, but %w starts a week on Sunday. I have 
changed the %W to %U which also starts the week on Sunday.

That should fix this.

Well spotted!
Jules.

On 06/12/2009 16:19, Mark Sapiro wrote:
> There seems to be an issue with updates to ScamNailer using the 2.07
> script due to the numbering scheme. Files appear to be numbered wwd
> where ww is the week of the year and d is the day of the week, but the
> day followes the normal Sun - Sat, 0 - 6 numbering, but the week
> increments on Monday.
>
> This results, e.g., in files for Saturday named '486' and files for
> Sunday named '480'.
>
> I don't know if this is related to the following or not, but I get
> output from the update script at 05:16 UTC on Sunday like
>
> Reading status from /var/cache/ScamNailer/status
> Checking that /var/cache/ScamNailer/cache/2009-486 exists... ok
> Checking that /var/cache/ScamNailer/cache/2009-486.0 exists... ok
> I am working with: Current: 2009-480 - 1 and Status: 2009-486 - 0
> This is base update
> Update required
> Retrieving http://www.mailscanner.tv/emails.2009-480.1
> /var/cache/ScamNailer/cache/2009-480.1
> Updating live file /var/cache/ScamNailer/phishing.emails.list
> Deleting cached file: 2009-486.... ok
> Reloading MailScanner workers:
>           MailScanner:       [  OK  ]
>      Outgoing postfix:       [  OK  ]
>
> which looks OK, but then on the next run at 11:16 UTC on Sunday
>
> Reading status from /var/cache/ScamNailer/status
> Checking that /var/cache/ScamNailer/cache/2009-480 exists... ok
> Checking that /var/cache/ScamNailer/cache/2009-480.1 exists... ok
> I am working with: Current: 2009-480 - 0 and Status: 2009-480 - 1
> No base update required
> Update required
> Error!: 0<1
> Updating live file /var/cache/ScamNailer/phishing.emails.list
> Deleting cached file: 2009-480.1.... ok
> Reloading MailScanner workers:
>           MailScanner:       [  OK  ]
>      Outgoing postfix:       [  OK  ]
>
> Somehow to appears that at 05:16 'current' is 2009-480.1, but at 11:16
> 'current' is 2009-480.0. What happened to 2009-480.1?
>
>    

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM and twitter.com/MailScanner


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list