Skip to main content

Allows automatic processing of bounces or automatic replies to emails sent by pretix.

Project description

This is a plugin for pretix. Once installed and configured, it makes pretix use random Sender headers for emails like noreply-amCwRFatawEjetS8@pretix.eu for outgoing emails. The From and Reply-To headers remain untouched. It then periodically checks for emails in a specified IMAP inbox and adds replied emails to the log of an order. This leads to an automatic logging of bounces on pretix-level.

Configuration

This requires an additional section in the pretix.cfg config file that looks like this:

[bounces]
alias=noreply-%s@mydomain.com
from_domain=mydomain.com
server=mail.mydomain.com:993
user=noreply@mydomain.com
pass=12345678

The plugin will only be effective for mails sent through the system default mailer (specified in the same file), not for events with a custom SMTP server. from_domain can contain multiple comma-separated domains, in which case you can use a second %s placeholder in alias for the domain.

Development setup

  1. Make sure that you have a working pretix development setup.

  2. Clone this repository, eg to local/pretix-bounces.

  3. Activate the virtual environment you use for pretix development.

  4. Execute pip install -e . within this directory to register this application with pretix’s plugin registry.

  5. Execute make within this directory to compile translations.

  6. Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in the ‘plugins’ tab in the settings.

License

Copyright 2017 Raphael Michel

Released under the terms of the Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pretix_bounces-2.0.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pretix_bounces-2.0.0-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

Details for the file pretix_bounces-2.0.0.tar.gz.

File metadata

  • Download URL: pretix_bounces-2.0.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pretix_bounces-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8718b53aef7c7f0b5a54ef2acc746f4ffc0ce0cdeb6b5ad4c7b294e4c113f9c9
MD5 54d6438dccdb648c19ee3875daf6f8a5
BLAKE2b-256 8efbd249f92e886f82dbbfb985fe8457e1aeb6f0f5fc978aefef22588e043247

See more details on using hashes here.

File details

Details for the file pretix_bounces-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: pretix_bounces-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 50.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pretix_bounces-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f66a2664f2f8c3c9c836c89cabbe51777b8cea62c4396bdec5e26e9cdea3b9bf
MD5 f05e256e31bc3e178aa974882ab621b3
BLAKE2b-256 21ce430bedf2154c08762c5245ee7ad48af91e62b95ab56fb1af8ccf0583c151

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page