Compare commits

..

8 Commits
0.4 ... main

Author SHA1 Message Date
9b4753a753 Added function to list timed aliases. Cleand up the code some 2025-03-04 10:14:27 +01:00
59cdf3c856 Refactor and bumped to version 2.0 2025-03-03 13:57:02 +01:00
Rune Olsen
d65a127c6d Small error fixes 2025-02-21 13:27:20 +01:00
Rune Olsen
22a9609dc4 Small error fixes 2025-02-21 13:16:42 +01:00
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
5 changed files with 451 additions and 533 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ malias.zip
malias_local.py
*.json
.DS_Store
.python-version

View File

@ -17,54 +17,52 @@ malias -h
## Documentation
```bash
usage: malias [-h] [-k APIkey] [-s alias@domain.com] [-m mailcow-server.tld]
[-a alias@domain.com to@domain.com]
[-t user@domain.com domain.com] [-d alias@domain.com]
[-i alias.json] [-v] [-c] [-l] [-o]
usage: malias [-h] [-c] [-s server APIKey] [-a alias@domain.com to@domain.com] [-f alias@domain.com] [-d alias@domain.com] [-t user@domain.com domain.com] [-w alias@domain.com] [-l] [-o] [-e] [-v]
This is a simple application to help you create and delete aliases on a mailcow instance.
If you find any issues or would like to submit a PR - please head over to https://gitlab.pm/rune/malias.
Malias is an application for adding, creating, and deleting aliases on a Mailcow instance.
I hope this makes your mailcow life a bit easier!
Use the issues section in the git repo for any problems or suggestions. https://gitlab.pm/rune/malias
optional arguments:
options:
-h, --help show this help message and exit
-k APIkey, --api APIkey
Add/Change API key.
-c, --copy Copy alias data from mailcow server to local DB.
-s alias@domain.com, --search alias@domain.com
Search for alias.
-s, --set server APIKey
Set connection information.
-m mailcow-server.tld, --server mailcow-server.tld
Add/Uppdate mailcow instance.
-a alias@domain.com to@domain.com, --add alias@domain.com to@domain.com
-a, --add alias@domain.com to@domain.com
Add new alias.
-t user@domain.com domain.com, --timed user@domain.com domain.com
Add new time limited alias for user on domain. One year validity
-f, --find alias@domain.com
Search for alias.
-d alias@domain.com, --delete alias@domain.com
-d, --delete alias@domain.com
Delete alias.
-i alias.json, --import alias.json
Show current config and appliacation info
-t, --timed user@domain.com domain.com
Add new time limited alias for user on domain.
The user@domain.com is where you want the alias to be delivered to.
The domain.com is which domain to use when creating the timed-alias.
One year validity
-v, --version Show current version and information
-c, --copy Copy alias data from mailcow server to local DB.
-w alias@domain.com, --alias alias@domain.com
List timed (temprary) aliases connected toone account.
-l, --list List all aliases on the Mailcow instance.
-o, --domains List all mail domains on the Mailcow instance.
-e, --export List all mail domains on the Mailcow instance.
-v, --version Show current version and information
Making mailcow easier...
```
## Plans
I'm also working on functionality for exporting and importing aliases. As of version _0.4_ there is an export and an import fucntion that is not active in the app. Hopefully they will be finnished some day...
I'm also working on functionality for ~~exporting~~ and importing aliases. As of version _0.4_ there is an export and an import fucntion that is not active in the app. Hopefully they will be finnished some day...
## Contributing

Binary file not shown.

Before

Width:  |  Height:  |  Size: 573 KiB

850
malias.py

File diff suppressed because it is too large Load Diff

View File

@ -1,48 +1,13 @@
aiohttp==3.8.4
aiosignal==1.3.1
async-timeout==4.0.2
attrs==22.2.0
bleach==6.0.0
build==0.10.0
certifi==2022.12.7
cffi==1.15.1
charset-normalizer==3.1.0
click==8.1.3
docopt==0.6.2
docutils==0.19
frozenlist==1.3.3
gitdb==4.0.10
GitPython==3.1.32
gpg==1.21.0
idna==3.4
importlib-metadata==6.1.0
jaraco.classes==3.2.3
keyring==23.13.1
markdown-it-py==2.2.0
anyio==4.8.0
certifi==2025.1.31
exceptiongroup==1.2.2
h11==0.14.0
httpcore==1.0.7
httpx==0.28.1
idna==3.10
markdown-it-py==3.0.0
mdurl==0.1.2
more-itertools==9.1.0
multidict==6.0.4
notmuch==0.37
notmuch2==0.37
openai==0.27.0
packaging==23.0
pipreqs==0.4.11
pkginfo==1.9.6
promptcli==1.0.4
pycparser==2.21
Pygments==2.14.0
pyproject_hooks==1.0.0
readme-renderer==37.3
requests==2.28.2
requests-toolbelt==0.10.1
rfc3986==2.0.0
rich==13.3.1
six==1.16.0
smmap==5.0.0
tqdm==4.65.0
twine==4.0.2
urllib3==1.26.14
webencodings==0.5.1
yarg==0.1.9
yarl==1.8.2
zipp==3.15.0
pygments==2.19.1
rich==13.9.4
sniffio==1.3.1
typing-extensions==4.12.2