1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 19:33:07 +01:00

Improve fetch_emails.unseen hook

This commit is contained in:
FreeScout 2020-12-23 21:52:12 -08:00
parent 3140c2e90c
commit 3fedf57b72

View File

@ -154,7 +154,9 @@ class FetchEmails extends Command
} }
$unseen = \Eventy::filter('fetch_emails.unseen', $this->option('unseen'), $mailbox); $unseen = \Eventy::filter('fetch_emails.unseen', $this->option('unseen'), $mailbox);
$this->line('['.date('Y-m-d H:i:s').'] Fetching: '.($unseen ? 'UNREAD' : 'ALL')); if ($unseen != $this->option('unseen')) {
$this->line('['.date('Y-m-d H:i:s').'] Fetching: '.($unseen ? 'UNREAD' : 'ALL'));
}
foreach ($folders as $folder) { foreach ($folders as $folder) {
$this->line('['.date('Y-m-d H:i:s').'] Folder: '.$folder->name); $this->line('['.date('Y-m-d H:i:s').'] Folder: '.$folder->name);