django: email and nntp tools
This MR relates to #47 (closed).
Email handling are a requirements for user creation (used for confirmation). This MR re-add the Email class, with some improvements:
- NNTP and SMTP code are split in tow classes (
EmailandNNTPClient) - Tests for both added
- Tests for NNTP are network dependent:
- Disabled in gitlab CI (won't connect to the NNTP server) and excluded from coverage
- Dynamic detection otherwise
- Fix wrong settings used in gitlab CI
- Base email template converted to django
Email template are meant to be stored per-app. The base template living in the base app.