<?php
require_once __DIR__ . '/../app/Core.php';
require_once __DIR__ . '/../app/services.php';

date_default_timezone_set(config('app.timezone', 'America/Chicago'));
$count = (new EmailService())->syncImap();
echo 'Imported emails: ' . $count . PHP_EOL;
