Skip to content

Instantly share code, notes, and snippets.

@berserker1
Created June 27, 2019 15:29
Show Gist options
  • Save berserker1/d1c69efc8a3665fed8902c8ea2443658 to your computer and use it in GitHub Desktop.
Save berserker1/d1c69efc8a3665fed8902c8ea2443658 to your computer and use it in GitHub Desktop.
File bounce.py in mailman/src/mailman/interfaces is an interface file which defines various class of bounce functions.Here the templates are to define a registration record and register bounce events.
File bounce.py in mailman/src/mailman/model is a model file for various functions, it works on the interfaces provided by the above files.
File bounce.py in mailman/src/mailman/runners/bounce.py runs the bounce runner.
Currently it is just finding out the temporary and permanent failures and storing the addresses to be processed.
File bounces.rst in mailman/src/mailman/app/docs/bounces.rst shows how a bounce message is generated and send to the original sender , how you can also send the error reasons in a dict and it will all be showed to the sender in an organized way.
File bounce.rst in mailman/src/mailman/model/docs shows how a bounce event is registered , it stores various info .
File test_bounces.py in mailman/src/mailman/app/tests tests the app.bounces funnctions.
File test_bounce.py in mailman/src/mailman/model/tests tests the bounce model objects .
File test_bounce.py in mailman/src/mailman/runners/tests tests the bounce runners.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment