Compare commits

...

4 Commits
0.4 ... main

Author SHA1 Message Date
2e85eb7b8b Work In Progress (WIP) 2024-05-21 12:37:11 +02:00
390f1c8aeb Work In Progress (WIP) 2024-05-06 11:31:25 +02:00
30a37cd0c3 Removed outdated screenshot 2024-04-20 14:39:52 +02:00
948d19ebf3 README.md 2024-04-10 13:45:43 +02:00
3 changed files with 18 additions and 18 deletions

View File

@ -47,9 +47,6 @@ optional arguments:
-d alias@domain.com, --delete alias@domain.com -d alias@domain.com, --delete alias@domain.com
Delete alias. Delete alias.
-i alias.json, --import alias.json
Show current config and appliacation info
-v, --version Show current version and information -v, --version Show current version and information
-c, --copy Copy alias data from mailcow server to local DB. -c, --copy Copy alias data from mailcow server to local DB.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 573 KiB

View File

@ -331,7 +331,7 @@ def checklist(alias):
remoteData = json.loads(remote) remoteData = json.loads(remote)
i = 0 i = 0
for search in remoteData: for search in remoteData:
if alias == remoteData[i]['address'] == alias in remoteData[i]['goto']: if alias == remoteData[i]['address'] || alias in remoteData[i]['goto']:
alias_exist = True alias_exist = True
i=i+1 i=i+1
cursor = conn.cursor() cursor = conn.cursor()
@ -514,21 +514,24 @@ def show_current_info():
else: else:
domain = domain + str(mail_domains[i]['domain_name']) domain = domain + str(mail_domains[i]['domain_name'])
i+=1 i+=1
print('\n[b]malias[/b] - Manage aliases on mailcow Instance.') print('\n[b]malias[/b] - Manage aliases on Mailcow instance.')
print('===================================================') print('===================================================')
print('API key : [b]%s[/b]' % (API)) print("API key\t\t\t: [b]%s[/b]" % (API))
print('Mailcow Instance : [b]%s[/b]' % (mail_server)) print("Mailcow Instance\t: [b]%s[/b]" % (mail_server))
print('Active domains : [b]%s[/b]' % (domain)) print("Active domains\t\t: [b]%s[/b]" % (domain))
print('Mailcow version : [b]%s[/b]' % (mailcow_version)) print("Mailcow version\t\t: [b]%s[/b]" % (mailcow_version))
print('Logfile : [b]%s[/b]' % (logfile)) print("Logfile\t\t\t: [b]%s[/b]" % (logfile))
print('Databse : [b]%s[b]' % (database)) print("Databse\t\t\t: [b]%s[b]" % (database))
print('Aliases on server : [b]%s[/b]' % (aliases_server)) print("Aliases on server\t: [b]%s[/b]" % (aliases_server))
print('Aliases in DB : [b]%s[/b]' % (alias_db)) print("Aliases in DB\t\t: [b]%s[/b]" % (alias_db))
print('') print("")
if app_version[:5] != latest_release: if app_version[:3] != latest_release:
print('App version : [b]%s[/b] a new version (%s) is available @ https://iurl.no/malias' % (app_version,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: else:
print('App version : [b]%s[/b]' % (app_version)) print("App version\t\t: [b]%s[/b]" % (app_version))
print('') print('')