|
|
@@ -22,6 +22,8 @@ readonly class MailFetcher
|
|
22
|
22
|
private LoggerInterface $logger,
|
|
23
|
23
|
private TelegramNotifier $telegramNotifier,
|
|
24
|
24
|
private PortfolioPresenter $portfolioPresenter,
|
|
|
25
|
+ private string $validEmailSubject,
|
|
|
26
|
+ private string $validEmailSender,
|
|
25
|
27
|
)
|
|
26
|
28
|
{
|
|
27
|
29
|
}
|
|
|
@@ -80,11 +82,11 @@ readonly class MailFetcher
|
|
80
|
82
|
return false;
|
|
81
|
83
|
}
|
|
82
|
84
|
|
|
83
|
|
- if (mb_stripos($mail->subject, 'Broker report') === false) {
|
|
|
85
|
+ if (mb_stripos($mail->subject, $this->validEmailSubject) === false) {
|
|
84
|
86
|
return false;
|
|
85
|
87
|
}
|
|
86
|
88
|
|
|
87
|
|
- if (mb_stripos($mail->fromAddress, '@bcs.ru') === false) {
|
|
|
89
|
+ if (mb_stripos($mail->fromAddress, $this->validEmailSender) === false) {
|
|
88
|
90
|
return false;
|
|
89
|
91
|
}
|
|
90
|
92
|
|