Changed log logic -- writing now controls mailing, as opposed to the other way around. Empty logs also no longer fire the mail trigger, nor do they interrupt a syncing chain.