Commit Graph

1419 Commits (e0ff135a000efcdf77a5e43a116b39bbcb97ec2c)

Author SHA1 Message Date
bors[bot] e0ff135a00
Merge
2498: Implement ITERATE in podop r=mergify[bot] a=nextgens

## What type of PR?

Feature

## What does this PR do?

This makes ``doveadm -A`` work.

The easiest way to try it out is:
```
doveadm dict iter proxy:/tmp/podop.socket:auth shared/userdb

or 

doveadm user '*'
```

The protocol is described at https://doc.dovecot.org/developer_manual/design/dict_protocol/
The current version of dovecot is not using flags... so there's little gain in implementing them.

### Related issue(s)
- close 

## Prerequisites
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
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
Alexander Graf c57706ad27
Duh
Alexander Graf 46773f639b
Return 404 is user-id cannot be parsed
Alexander Graf 595b32cf97
Fix quota return value
Alexander Graf bec0b1c3b2
Fix variable name
Alexander Graf dec5309ef9
Fix typo
wkr d920b3d037 fix(auto-reply): include start and end dates in the auto-reply period; issue
Florent Daigniere ff9f152a52 This may be helpful too
Florent Daigniere 5137b235e9 whitelist what we know works
If other people use other arch and want their builds to go faster we can
whitelist them too after they have confirmed it works.
Alexander Graf a2d43be6de
Fix building wheels when deps need to compile
bors[bot] 659cf8894c
Merge
2502: Resolve using socrate function r=mergify[bot] a=ghostwheel42

## What type of PR?

enhancement

## What does this PR do?

nginx.py had a copy of the socrate function resolve_hostname.
This removes the duplicated code and uses the socrate function.
The socrate functions does the same but prefers ipv4 addresses when resolving.


Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
Alexander Graf 91f86a4c2a
Resolve using socrate function
Alexander Graf bba98b320e
Fix armv7 build by manually downloading crates.io index
Florent Daigniere 6def1b555b doh
Florent Daigniere c1f571a4c3 Speed things up.
If we want to go further than this we should change podop's incr(), pass
the flags and make admin process the results.
Florent Daigniere 96d9289630 No need to send an extra \n
Florent Daigniere cdc9b63a46 Guard the message logging too
Florent Daigniere 2a417dbfc2 doesn't belong here
Florent Daigniere 1ce889b91b Do it the pythonic way
Florent Daigniere e10527a4bf This is not used anymore
Florent Daigniere 1ae4c37cb9 Don't do fancy, just re-raise it
Florent Daigniere 5ec4277e1e Make it async. I'm not sure it's a good idea
Florent Daigniere cf34be967c Implement ITERATE
bors[bot] 62c919da09
Merge
2497: Upgrade to alpine 3.16.2 r=mergify[bot] a=nextgens

## What type of PR?

bug-fix

## What does this PR do?

This may fix the build issues on arm (troubles building cryptography)

## Prerequisites
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
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
Florent Daigniere 340e359096 doh
Florent Daigniere 076d67b513 follow the protocol
Florent Daigniere 2e467092a2 The newer dovecot sends data podop should ignore
bors[bot] 12480ccbff
Merge
2328: Feature: Configurable default spam threshold used for new users r=mergify[bot] a=enginefeeder101

## What type of PR?

Feature

## What does this PR do?

This PR adds functionality to set a custom default spam threshold
for new users. The environment variable ``DEFAULT_SPAM_THRESHOLD`` is
used for this purpose. When not set, it defaults back to 80%, as the
default value was before.

If ``DEFAULT_SPAM_THRESHOLD`` is set to a value that Python cannot
parse as an integer, a ValueError is thrown. There is no error handling
for that case built-in. Should that be done?

## Prerequisites
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: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: enginefeeder101 <enginefeeder101@users.noreply.github.com>
Co-authored-by: Dimitri Huisman <diman@huisman.xyz>
Florent Daigniere 8942448561 Upgrade to alpine 3.16.2
This may fix the build issues on arm
Dimitri Huisman 06b784da57
Shorten default function by using lambda
bors[bot] 9975a793fe
Merge
2458: Fix: Don't update updated_at on quota_bytes_used change r=mergify[bot] a=DjVinnii

## What type of PR?

bug-fix

## What does this PR do?

This PR makes sure that the `updated_at` field is not updated when `quota_bytes_used` is updated. All other updates to the `User` model still updates the `updated_at` field. 

This is done by explicitly using an method in the `Base` class triggering [`flag_modified`][url-flag-modified].

### Related issue(s)
- closes 

## Prerequisites
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
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.

<!-- LINKS-->
[url-flag-modified]: https://docs.sqlalchemy.org/en/14/orm/session_api.html#sqlalchemy.orm.attributes.flag_modified


Co-authored-by: Vincent Kling <v.kling@vinniict.nl>
bors[bot] 5703e97c73
Merge
2460: Switch to a base image containing base tools and the podop and socrate libs r=mergify[bot] a=ghostwheel42

## What type of PR?

enhancement of build process

## What does this PR do?

Changes build.hcl to build core images using a base image.
Also adds a "assets" base image for the admin container.


Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
Co-authored-by: Pierre Jaury <pierre@jaury.eu>
Co-authored-by: kaiyou <pierre@jaury.eu>
Co-authored-by: Dimitri Huisman <52963853+Diman0@users.noreply.github.com>
Alexander Graf 024b0573b3
Update build reqs and fix armv7 build
Vincent Kling 6363acf30a Add dont_change_updated_at to fetch_done
Vincent Kling 6b785abb01 Rename flag_updated_at_as_modified to dont_change_updated_at
Blaž Zupan 56617bbe12 Quote SMTP SIZE to avoid splitting keyword and parameter in EHLO response
Vincent Kling 23d06a5761 Fix a bunch of typos
Alexander Graf d9bf6875e1
Optimize build order for better caching
Alexander Graf 7441a420c4
Fix and speed-up arm build. Allow chosing of prod/dev env.
Alexander Graf 146921f619
Move curl to base image
Alexander Graf 4c1071a497
Move all requirements*.txt to base image
Alexander Graf a29f066858
Move even more python deps to base image
Alexander Graf 52dd09d452
Fix assets build process
Alexander Graf 768c0cc1ce
Fix assets build process
Alexander Graf 8668b269cd
Add requirements.txt for base image
Alexander Graf 9f511faf64
Merge pull request from NeverBehave/master
fix: resolve IPv6 container hostname
Dimitri Huisman b711f930ef
Merge pull request from vavanade/patch-1
fix docstring
Dimitri Huisman c0066abd01
Merge pull request from micw/log-failed-dns
Add logging for failed DNS lookups
kaiyou f63837b8e1
Update to 0.2.0
kaiyou 68d44201ab
Merge pull request from micw/resolve-host-if-address-not-set
Resolve host if address not set