From cb848422b267b5b2d9284be75c42a1ea6c84e8e7 Mon Sep 17 00:00:00 2001 From: djmaze <> Date: Wed, 22 Dec 2021 20:30:02 +0100 Subject: [PATCH] Resolve #174 --- .../v/0.0.0/app/libraries/snappymail/upgrade.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/upgrade.php b/snappymail/v/0.0.0/app/libraries/snappymail/upgrade.php index c4c62b382..e4b7035cf 100644 --- a/snappymail/v/0.0.0/app/libraries/snappymail/upgrade.php +++ b/snappymail/v/0.0.0/app/libraries/snappymail/upgrade.php @@ -65,16 +65,18 @@ abstract class Upgrade } $sHash = $oMainAccount->CryptKey(); foreach ($aAccounts as $sEmail => $sToken) { + if ($oMainAccount->Email() == $sEmail) { + continue; + } try { $aNewAccounts[$sEmail] = [ 'account', $sEmail, - $sEmail, - '', - '', - '', - '', - $oMainAccount->Email(), + $sEmail, // sLogin + '', // sPassword + '', // sClientCert + '', // sProxyAuthUser + '', // sProxyAuthPassword \hash_hmac('sha1', '', $sHash) ]; if (!$sToken) {