1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-06-15 00:05:11 +02:00
Commit Graph

53 Commits

Author SHA1 Message Date
0e4c29c269 Clarify further, use the API suggested by ghostwheel42 in (b) 2023-08-19 16:35:22 +02:00
25b89a732b Set the flag when reset by command line too 2023-08-12 09:03:15 +02:00
7b13ceb693 API and cmdline 2023-08-12 08:51:42 +02:00
786da5e08c clarify 2023-08-11 09:03:42 +02:00
bd4c40b596 Prune sessions that are unrelated when changing passwords 2023-08-10 12:27:47 +02:00
30efdf557f Re-enable cli action user_delete with "disable" as default 2023-01-27 10:28:27 +01:00
83ef6d773d Make it clear that we don't delete users 2022-11-27 14:14:00 +01:00
c1062f3db2 set the umask 2022-11-25 17:53:25 +01:00
f65e2fc469 Feature: Marking "Read" spam mails 2022-03-11 16:58:50 +03:00
9bc685c30b removed some more whitespace 2021-10-29 15:34:00 +02:00
25cf8b5358 better help formatting 2021-09-13 15:13:29 +02:00
b63081cb48 display error (not exception) when creating admin
repleace misleading python exception (mailu broken)
with error message stating that the admin user is
already present
2021-09-13 14:49:49 +02:00
ce9a9ec572 always init Logger first 2021-03-10 18:50:52 +01:00
dd2e218375 Merge remote-tracking branch 'upstream/master' into import-export 2021-03-09 13:31:21 +01:00
7137ba6ff1 Misc improvements to PASSWORD_SCHEME
- remove PASSWORD_SCHEME altogether
- introduce CREDENTIAL_ROUNDS
- migrate all old hashes to the current format
- auto-detect/enable all hash types that passlib supports
- upgrade passlib to 1.7.4 (see #1706: ldap_salted_sha512 support)
2021-03-09 12:04:42 +01:00
bde7a2b6c4 moved import logging to schema
- yaml-import is now logged via schema.Logger
- iremoved relative imports - not used in other mailu modules
- removed develepment comments
- added Mailconfig.check method to check for duplicate domain names
- converted .format() to .format_map() where possible
- switched to yaml multiline dump for dkim_key
- converted dkim_key import from regex to string functions
- automatically unhide/unexclude explicitly specified attributes on dump
- use field order when loading to stabilize import
- fail when using 'hash_password' without 'password'
- fixed logging of dkim_key
- fixed pruning and deleting of lists
- modified error messages
- added debug flag and two verbosity levels
2021-02-19 18:01:02 +01:00
e4c83e162d fixed colorize auto detection 2021-02-16 17:59:43 +01:00
10435114ec updated remarks and docs 2021-02-16 15:36:01 +01:00
70a1c79f81 handle prune and delete for lists and backrefs 2021-02-15 22:57:37 +01:00
8929912dea remove OrderedDict - not necessary in python>=3.7 2021-02-15 21:56:58 +01:00
3937986e76 Convert OrderedDict to dict for output 2021-02-15 10:01:35 +01:00
68caf50154 new import/export using marshmallow 2021-02-15 00:46:59 +01:00
902b398127 next step for import/export yaml & json 2021-01-24 19:07:48 +01:00
31a903f959 revived & renamed config-fns. cosmetics.
- revived original config-update function for backwards compability
- renamed config-dump to config-export to be in line with config-import
- converted '*'.format(*) to f-strings
- converted string-concatenation to f-strings
2021-01-15 13:45:36 +01:00
c24bff1c1b added config_import using marshmallow 2021-01-14 01:11:04 +01:00
7413f9b7b4 config_dump now using marshmallow 2021-01-13 00:05:43 +01:00
6629aa3ff8 first try at api using flask-restx & marshmallow 2021-01-06 17:05:21 +01:00
4c258f5a6b cosmetic changes & make linter happy
renamed single letter variables (m => match)
renamed classmethod arguments to cls (model)
removed shadowing of variables (hash, context)
shortened unneeded lambda functions (id)
converted type ... is to isinstance(...)
removed unneded imports (flask)
2021-01-06 16:45:55 +01:00
3064a1dcff removed call to (undefined) cli 2020-12-20 23:38:55 +01:00
adc9c70c3e added dump option to dump dns data of domains 2020-10-24 22:31:32 +02:00
2a5c46c890 Allow to dump only selected sections 2020-10-24 22:31:31 +02:00
8e14aa80ee documented options and added help text 2020-09-04 12:57:40 +02:00
9d2327b0f1 add space for more human readable indentation
add a newline before main sections
add some spaces to indent
2020-09-04 12:32:51 +02:00
190e7a709b renamed config-dump option --verbose to --full 2020-08-26 23:14:27 +02:00
5c0efe82cf implemented config_update and config_dump
enhanced data model with to_dict and from_dict methods
added config_dump function to manage command
config_update now uses new data model methods
2020-08-26 11:27:38 +02:00
23f21f8b9c Use pyyaml safe_load instead of load
Since load in unsafe (ref: https://msg.pyyaml.org/load),
switch the only occurrance of `yaml.load` that i could
find to safe_load.

closes #1085
2020-03-07 19:08:52 +00:00
2785bca1f4 Merge #883
883: Admin create user enhancement r=mergify[bot] a=cr1st1p

## What type of PR?
Enhancement

## What does this PR do?
It allows the admin docker image to also create the admin user.
The idea is that in my kubernetes setup, I do not want to manually do anything, as such, I need a way for the admin user to also be created automatically without me getting inside the pod.
So I had to change the manage.py function that creates the user to allow different 'modes' (me, I'll be using 'ifmissing') and also start.py to call that functionality if appropriate environment variables are present.

So now, in my Deployment, I add 3 more environment variables and I get the admin user created, IF not already present.

### Related issue(s)
none?

## Prerequistes
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: place entry in the [changelog](CHANGELOG.md), under the latest un-released version.


Co-authored-by: cristi <cristi.posoiu@gmail.com>
Co-authored-by: cr1st1p <cristi.posoiu@gmail.com>
Co-authored-by: Tim Möhlmann <muhlemmer@gmail.com>
2019-08-21 20:58:25 +00:00
7d964874e8 Cleanup spaces around '=' 2019-08-21 16:35:41 +03:00
616d40d225 Update password in commandline 2019-07-08 10:50:08 +02:00
f2a009795b Merge branch 'master' into admin_create_user_enhancement 2019-05-20 23:17:22 +03:00
211136f9b1 Merge #934
934: Pass optional arguments to domain model r=mergify[bot] a=ionutfilip

## What type of PR?
bug-fix

## What does this PR do?
Passing optional args to domain model when using cli.

### Related issue(s)
Fixes #933

## Prerequistes
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [ ] In case of feature or enhancement: documentation updated accordingly
- [ ] Unless it's docs or a minor change: place entry in the [changelog](CHANGELOG.md), under the latest un-released version.


Co-authored-by: Ionut Filip <ionut.philip@gmail.com>
2019-02-13 21:58:49 +00:00
4d2844c1f5 Fixed arguments passed to domain 2019-02-13 16:43:45 +02:00
1dfef1609a add domain cli to docs 2019-02-13 10:53:40 +01:00
bc617cf8ec replace _ with - in cli options 2019-02-13 10:30:08 +01:00
9b65a6c862 Merge branch 'master' into admin_create_user_enhancement 2019-01-25 23:36:06 +02:00
a071181c61 Allow to automatically create admin account during startup. 2019-01-25 16:04:20 +02:00
fba246e9a1 add wildcard option to cli (alias) 2019-01-24 21:32:22 +01:00
66df7a31b0 Unify and coerce booleans from env used in admin
At some places, the string that DOMAIN_REGISTRATION is got used like a boolean
(an easy misassumption to make while in python and dealing with the config
dict), making `DOMAIN_REGISTRATION=False` act as a truthy value. To stop such
future problems from happening, coerce environment config strings to real
bools.

closes #830
2019-01-13 10:22:32 +01:00
dda64fe91e allow to disable aliases or users for domains and don't allow negativ values on domain creation/edit 2019-01-05 13:52:13 +01:00
02995f0a15 Add a mailu command line to flask 2018-11-08 21:29:30 +01:00