Catalog PyPI
PACKAGE EXPLORERView in registry

aa-mailrelay

PyPI

An app for relaying Eve mails to Discord.

Versions collected1
Direct dependencies8From release 2.1.1
Last observed20 Oct, 16:58 UTC

README

Version 2.1.1 documentation

Mailrelay

An app for relaying Eve mails to Discord.

release python django CI/CD Pipeline codecov license pre-commit Code style: black chat

Contents

Overview

This app can automatically forwards eve mails to Discord channels. This can e.g. be useful to include people in all hands communications, who do not check their eve mails that often, but still can be reached via Discord.

You can choose to just forward corporation or alliance mails only or all mails that a character receives.

This app is an add-on to Member Audit and requires you to have Member Audit installed and running. You can choose to forward mails from any character that is registered on Member Audit.

Installation

Step 1 - Check preconditions

Please make sure you have the following applications installed and running before attempting to install the Mail Relay app:

Step 2 - Install app

Make sure you are in the virtual environment (venv) of your Alliance Auth installation. Then install the newest release from PyPI:

pip install aa-mailrelay

Step 3 - Configure settings

Configure your Auth settings (local.py) as follows:

  • Add 'mailrelay' to INSTALLED_APPS
  • Add below lines to your settings file:
CELERYBEAT_SCHEDULE['mailrelay_forward_new_mails'] = {
    'task': 'mailrelay.tasks.forward_new_mails',
    'schedule': crontab(minute='*/5'),
}
  • Optional: Add additional settings if you want to change any defaults. See Settings for the full list.

Step 4 - Finalize installation

Run migrations & copy static files

python manage.py migrate
python manage.py collectstatic

Restart your supervisor services for Auth

...

Step 5 - Setup mail relays

To setup your first mail relay go to the admin site / Mail Relay / RelayConfig.

Update the known Discord channels by clicking the button: "UPDATE DISCORD CHANNELS".

Click on "ADD RELAY CONFIG" to create your first mail relay configuration.

Settings

Here is a list of available settings for this app. They can be configured by adding them to your AA settings file (local.py).

Note that all settings are optional and the app will use the documented default settings if they are not used.

NameDescriptionDefault
DISCORDPROXY_HOSTPort used to communicate with Discord Proxy.localhost
DISCORDPROXY_PORTHost used to communicate with Discord Proxy.50051
MAILRELAY_DISCORDPROXY_TIMEOUTTimeout for sending request to DISCORDPROXY in seconds.30
MAILRELAY_OLDEST_MAIL_HOURSOldest mail to be forwarded in hours. Set to 0 to disable.2
MAILRELAY_RELAY_GRACE_MINUTESMax time in minutes since last successful relay before service is reported as down.30

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
2.1.129 Jun 20268

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
allianceauth-apps/aa-mailrelay

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:58 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:6547e8c4b645f1c6924000ab1e2f6909779d6cea601cd4b5412ba1fe07803664