I can't really figure out what `now` and `end` are and the significance of this `if` statement, can you beef this up with some comments. 

I do see though that if the `config.mail.pollingFrequency` is exactly 24 hours, daily mail may never collect?