gestion des server recherchés associés a=à aucun comptes

This commit is contained in:
jopazerty
2025-06-11 12:51:57 +02:00
parent 212da06422
commit 26976917a8

View File

@ -46,7 +46,7 @@ $hGUI = GUICreate("MoveYourPOP", 800, 570)
GUISetBkColor(0xf2f2f2) GUISetBkColor(0xf2f2f2)
GUISetFont(10, 500, default, "Segoe UI") GUISetFont(10, 500, default, "Segoe UI")
GUICtrlCreateLabel("moveYourPOP© by jop - Version 1.2", 0, 553, 800, 15, $SS_CENTER) GUICtrlCreateLabel("moveYourPOP© by jop - Version 1.3", 0, 553, 800, 15, $SS_CENTER)
GUICtrlSetFont(-1, 8, 500, 2, "Segoe UI") GUICtrlSetFont(-1, 8, 500, 2, "Segoe UI")
GUICtrlSetBkColor(-1, 0xf2f2f2) GUICtrlSetBkColor(-1, 0xf2f2f2)
@ -327,6 +327,9 @@ Func _getAllServer($profileDirectory)
$domainToSearch = StringReplace($domainToSearch, " ", "") $domainToSearch = StringReplace($domainToSearch, " ", "")
if StringRegExp($searchForAcNice[$p], $domainToSearch) Then if StringRegExp($searchForAcNice[$p], $domainToSearch) Then
$infoServeur = _getInfosAboutServer($prefsToArray, $serverID) $infoServeur = _getInfosAboutServer($prefsToArray, $serverID)
if @error Then
ContinueLoop
EndIf
$username = $infoServeur[0] $username = $infoServeur[0]
$IDAccount = $infoServeur[1] $IDAccount = $infoServeur[1]
$IDIdentity = $infoServeur[2] $IDIdentity = $infoServeur[2]
@ -407,6 +410,9 @@ Func _getInfosAboutServer($prefsArray, $serverID)
$aArray[0] = _searchValueInPrefsJsArray($prefsArray, "mail.server."&$serverID&".userName") $aArray[0] = _searchValueInPrefsJsArray($prefsArray, "mail.server."&$serverID&".userName")
$accountID = _searchKeyInPrefsJsArray($prefsArray, $serverID) $accountID = _searchKeyInPrefsJsArray($prefsArray, $serverID)
$accountID = StringSplit($accountID, ".") $accountID = StringSplit($accountID, ".")
If @error Then
Return SetError(15)
EndIf
$accountID = $accountID[3] $accountID = $accountID[3]
$aArray[1] = $accountID $aArray[1] = $accountID
$aArray[2] = _searchValueInPrefsJsArray($prefsArray, "mail.account."&$accountID&".identities") $aArray[2] = _searchValueInPrefsJsArray($prefsArray, "mail.account."&$accountID&".identities")