So, alpine will download platform-specific cache files, meaning that
when another platform tries to use the cache, it will fail with
packages not being found.
Seems that there's an issue with Alpine `linux/386` repo which
produces an error `UNTRUSTED signature` while trying to install
packages.
Temporarily removing this platform make the build pass.
This refactor simplifies the `Dockerfile` by considerable amount:
new features of mobykit buildkit allow us to cache `apt`/`apk`
folder (so no need to delete `/var/lib/cache`) as well as extract
the build / install logic into separate files, which removes the
need for `&& \` and makes the code *much more* readable.
`build.sh` script has been updated as well to allow caching local
builds when testing, making it much more easier to test.
`paranoid` and `smart` analyzers were testing for message-ids. As it
turns out, these are not as simple as we thought. Detecting message ids
has been changed and, consequentially, this test methods are no longer
neccessary.
Test a few more functionalities in the image. Change how postfix
message IDs are detected. Message ID can be set by the client and
hence detecting them via regex is not the best way to go around it.
This fix will actually look at the log line and try to determine
if we're looking at the message ID or not.
fix regex to avoid '>' at the end of email
set default prefix & suffix to '' have a clean email in logs
update hmac hashing to use the same function as others programming languages
fix typos
A small error where sed was called wrongly ('s/.../d') instead of
'/.../d' was causing an error `sed: unmatched '/' on configuration
change`.
This commit should fix the issue.
This email anonymizer tries to be a bit more smart about how it goes
about anonymizing email addresses, by providing as much as possible
information while still making sure to respect user's privacy.
More info available in `README.md`.