mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-12 10:45:38 +02:00
review
This commit is contained in:
parent
845eff0055
commit
c008ce6608
5
.github/workflows/build_test_deploy.yml
vendored
5
.github/workflows/build_test_deploy.yml
vendored
@ -576,7 +576,8 @@ jobs:
|
||||
issue: "${{ steps.changelog.outputs.issue }}"
|
||||
changelog: "${{ steps.changelog.outputs.content }}"
|
||||
run: |
|
||||
cat << "EOT" >> release_note.md
|
||||
EOT=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
|
||||
cat << "${EOT}" >> release_note.md
|
||||
Changelog :mailbox:
|
||||
---------
|
||||
+ ${{ env.changelog }}
|
||||
@ -590,7 +591,7 @@ jobs:
|
||||
The main version X.Y (e.g. 1.9) will always reflect the latest version of the branch. To update your Mailu installation simply pull the latest images \`docker compose pull && docker compose up -d\`.
|
||||
|
||||
The pinned version X.Y.Z (e.g. 1.9.1) is not updated. It is pinned to the commit that was used for creating this release. You can use a pinned version to make sure your Mailu installation is not suddenly updated when recreating containers. The pinned version allows the user to manually update. It also allows to go back to a previous pinned version.
|
||||
EOT
|
||||
${EOT}
|
||||
- name: Show release note
|
||||
shell: bash
|
||||
run: |
|
||||
|
@ -28,7 +28,7 @@ def test_imap(server, username, password):
|
||||
print(f'Authenticating to imap://{username}:{password}@{server}:143/ worked without STARTTLS!')
|
||||
os.exit(102)
|
||||
except imaplib.IMAP4.error:
|
||||
print('NOK')
|
||||
print('NOK - expected')
|
||||
|
||||
def test_pop3(server, username, password):
|
||||
print(f'Authenticating to pop3s://{username}:{password}@{server}:995/')
|
||||
@ -56,7 +56,7 @@ def test_pop3(server, username, password):
|
||||
print(f'Authenticating to pop3://{username}:{password}@{server}:110/ worked without STARTTLS!')
|
||||
os.exit(103)
|
||||
except poplib.error_proto:
|
||||
print('NOK')
|
||||
print('NOK - expected')
|
||||
|
||||
def test_SMTP(server, username, password):
|
||||
print(f'Authenticating to smtps://{username}:{password}@{server}:465/')
|
||||
@ -76,8 +76,9 @@ def test_SMTP(server, username, password):
|
||||
with smtplib.SMTP(server, 587) as conn:
|
||||
conn.ehlo()
|
||||
conn.login(username, password)
|
||||
print(f'Authenticating to smtp://{username}:{password}@{server}:587/ worked!')
|
||||
except smtplib.SMTPNotSupportedError:
|
||||
print('NOK')
|
||||
print('NOK - expected')
|
||||
#port 25 should fail
|
||||
try:
|
||||
print(f'Authenticating to smtps://{username}:{password}@{server}:25/')
|
||||
@ -86,17 +87,18 @@ def test_SMTP(server, username, password):
|
||||
conn.starttls()
|
||||
conn.ehlo()
|
||||
conn.login(username, password)
|
||||
print(f'Authenticating to smtps://{username}:{password}@{server}:25/ worked!')
|
||||
except smtplib.SMTPNotSupportedError:
|
||||
print('NOK')
|
||||
print('NOK - expected')
|
||||
try:
|
||||
print(f'Authenticating to smtp://{username}:{password}@{server}:25/')
|
||||
with smtplib.SMTP(server) as conn:
|
||||
conn.ehlo()
|
||||
conn.login(username, password)
|
||||
print(f'Authenticating to smtp://{username}:{password}@{server}:587/ worked without STARTTLS!')
|
||||
print(f'Authenticating to smtp://{username}:{password}@{server}:25/ worked without STARTTLS!')
|
||||
os.exit(104)
|
||||
except smtplib.SMTPNotSupportedError:
|
||||
print('NOK')
|
||||
print('NOK - expected')
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_imap(SERVER, USERNAME, PASSWORD)
|
||||
|
Loading…
Reference in New Issue
Block a user