mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #604
This commit is contained in:
parent
cd09faa2ac
commit
c7df5b9a3e
1 changed files with 1 additions and 3 deletions
|
|
@ -1171,11 +1171,9 @@ class Actions
|
||||||
*/
|
*/
|
||||||
protected function initMailClientConnection(): ?Model\Account
|
protected function initMailClientConnection(): ?Model\Account
|
||||||
{
|
{
|
||||||
$oAccount = null;
|
|
||||||
|
|
||||||
if (!$this->MailClient()->IsLoggined()) {
|
|
||||||
$oAccount = $this->getAccountFromToken();
|
$oAccount = $this->getAccountFromToken();
|
||||||
|
|
||||||
|
if (!$this->MailClient()->IsLoggined()) {
|
||||||
try {
|
try {
|
||||||
$oAccount->ImapConnectAndLoginHelper($this->oPlugins, $this->MailClient(), $this->oConfig);
|
$oAccount->ImapConnectAndLoginHelper($this->oPlugins, $this->MailClient(), $this->oConfig);
|
||||||
} catch (\MailSo\Net\Exceptions\ConnectionException $oException) {
|
} catch (\MailSo\Net\Exceptions\ConnectionException $oException) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue