Refactor the notification script
commitf3b4c5c6bc6cd1f7320505ca725c46c78e1362f3
authorLukas Fleischer <lfleischer@archlinux.org>
Thu, 17 May 2018 17:49:34 +0000 (17 19:49 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Thu, 17 May 2018 20:05:52 +0000 (17 22:05 +0200)
treeb4a3cef18e6bb6546ebcf4fd098ad1bee2b19ddb
parentfec253a65de91e0790f818dde162c80186a092f8
Refactor the notification script

Reimplement most of the notification script logic. Create a separate
class for each notification type. Each class provides methods for
generating the list of recipients, the message subject, the message
body, the references to add at the end of the message and the message
headers. Additionally, a method for sending notification emails is
provided.

One major benefit of the new implementation is that both the generation
of recipients and message contents are much more flexible. For example,
it is now easily possible to make user-specific adjustments to every
single notification of a batch.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
aurweb/scripts/notify.py