From 2e85eb7b8be584fbdc933f6147a77f7bce1af2db Mon Sep 17 00:00:00 2001 From: rune Date: Tue, 21 May 2024 12:37:11 +0200 Subject: [PATCH] Work In Progress (WIP) --- malias.py | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/malias.py b/malias.py index 99aede0..7c51390 100644 --- a/malias.py +++ b/malias.py @@ -514,21 +514,24 @@ def show_current_info(): else: domain = domain + str(mail_domains[i]['domain_name']) i+=1 - print('\n[b]malias[/b] - Manage aliases on mailcow Instance.') + print('\n[b]malias[/b] - Manage aliases on Mailcow instance.') print('===================================================') - print('API key : [b]%s[/b]' % (API)) - print('Mailcow Instance : [b]%s[/b]' % (mail_server)) - print('Active domains : [b]%s[/b]' % (domain)) - print('Mailcow version : [b]%s[/b]' % (mailcow_version)) - print('Logfile : [b]%s[/b]' % (logfile)) - print('Databse : [b]%s[b]' % (database)) - print('Aliases on server : [b]%s[/b]' % (aliases_server)) - print('Aliases in DB : [b]%s[/b]' % (alias_db)) - print('') - if app_version[:5] != latest_release: - print('App version : [b]%s[/b] a new version (%s) is available @ https://iurl.no/malias' % (app_version,latest_release)) - else: - print('App version : [b]%s[/b]' % (app_version)) + print("API key\t\t\t: [b]%s[/b]" % (API)) + print("Mailcow Instance\t: [b]%s[/b]" % (mail_server)) + print("Active domains\t\t: [b]%s[/b]" % (domain)) + print("Mailcow version\t\t: [b]%s[/b]" % (mailcow_version)) + print("Logfile\t\t\t: [b]%s[/b]" % (logfile)) + print("Databse\t\t\t: [b]%s[b]" % (database)) + print("Aliases on server\t: [b]%s[/b]" % (aliases_server)) + print("Aliases in DB\t\t: [b]%s[/b]" % (alias_db)) + print("") + if app_version[:3] != latest_release: + print( + "App version\t\t\t\t: [b]%s[/b] a new version (%s) is available @ https://iurl.no/malias" + % (app_version, latest_release) + ) + else: + print("App version\t\t: [b]%s[/b]" % (app_version)) print('')