Skip to content

Commit

Permalink
Merge pull request #7 from NethServer/fixStarttls
Browse files Browse the repository at this point in the history
Fix validation error messages and translations
#7
  • Loading branch information
stephdl authored Nov 24, 2023
2 parents 5010733 + e539de9 commit 29d83e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions imageroot/actions/create-task/30Imapsync_validation
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ elif 'SSL connect attempt failed' in result.stdout:
agent.set_status('validation-failed')
json.dump([{'field':'createTask','parameter':'createTask','value':'SSL_encryption_error','error':'SSL_encryption_error'}],fp=sys.stdout, default=str)
sys.exit(4)
elif 'ERR_EXIT_TLS_FAILURE' in result.stdout:
agent.set_status('validation-failed')
json.dump([{'field':'createTask','parameter':'createTask','value':'STARTTLS_not_allowed_use_IMAPS','error':'STARTTLS_not_allowed_use_IMAPS'}],fp=sys.stdout, default=str)
sys.exit(4)
elif 'ERR_CONNECTION_FAILURE_HOST1' in result.stdout:
agent.set_status('validation-failed')
json.dump([{'field':'createTask','parameter':'createTask','value':'Check_hostname_or_tcp_port','error':'Check_hostname_or_tcp_port'}],fp=sys.stdout, default=str)
Expand Down
6 changes: 3 additions & 3 deletions ui/public/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"delete_on_remote":"Delete messages on remote once synchronized",
"bad_user_credentials": "Verify the user credentials, the remote server refused to authenticate",
"Check_hostname_or_tcp_port": "Verify the Hostname and the TCP port, the remote server refused to authenticate",
"SSL_encryption_error":"Verify the TLS encryption, IMAPS of STARTTLS",
"SSL_encryption_error":"Verify the TLS encryption, IMAPS or STARTTLS",
"localuser_string_gte": "The local username cannot be empty",
"synchronize_folders": "Folder synchronization",
"synchronize_folders_explanation": "You can decide to make a full synchronization, only INBOX, or folders exclusion",
Expand All @@ -111,8 +111,8 @@
"informations": "Informations",
"fetching_statistic_please_wait":"Waiting to retrieve statictics, please wait",
"every_minutes":"Every {num} minutes",
"configure_imapsync": "Go to the settings"

"configure_imapsync": "Go to the settings",
"STARTTLS_not_allowed_use_IMAPS": "STARTTLS is not allowed by the provider"
},
"about": {
"title": "About"
Expand Down

0 comments on commit 29d83e2

Please sign in to comment.