Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
Ansible
Commits
1f7a86d4
Verified
Commit
1f7a86d4
authored
3 years ago
by
ynerant
Browse files
Options
Downloads
Patches
Plain Diff
[mailman3] Patch sources to add moderation links in emails
Signed-off-by:
Yohann D'ANELLO
<
ynerant@crans.org
>
parent
7d4f4bf9
No related branches found
No related tags found
1 merge request
!271
Mailman 3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/mailman3/tasks/main.yml
+29
-0
29 additions, 0 deletions
roles/mailman3/tasks/main.yml
roles/mailman3/templates/mailman/templates/fr/list:admin:action:post.txt.j2
+15
-0
15 additions, 0 deletions
...plates/mailman/templates/fr/list:admin:action:post.txt.j2
with
44 additions
and
0 deletions
roles/mailman3/tasks/main.yml
+
29
−
0
View file @
1f7a86d4
...
...
@@ -78,6 +78,35 @@
become_user
:
www-data
notify
:
Restart mailman3-web
# When notifying moderators daily, add link to moderation page
-
blockinfile
:
path
:
/usr/lib/python3/dist-packages/mailman/commands/cli_notify.py
marker
:
"
{mark}"
marker_begin
:
'
#
XXX
This
should
be
a
template.'
marker_end
:
'
msg
=
OwnerNotification(mlist,
subject,
text,
mlist.administrators)'
block
:
|-
text = _("""La liste {} a {} requêtes de modération en attente.
{}
Vous pouvez gérer ces demandes via votre interface web
:
https://{{ mailman3.web_domains[0] }}/postorius/lists/{}/held_messages
# Owner notifications are sent from listname-bounces@domain.
-
lineinfile
:
path
:
/usr/lib/python3/dist-packages/mailman/email/message.py
regexp
:
'
sender
='
line
:
'
sender
=
f"{mlist.list_name}-bounces@{mlist.domain.mail_host}"'
# When notifying moderators of a new incoming message, add link to moderation page
-
template
:
src
:
mailman/templates/fr/list:admin:action:post.txt.j2
dest
:
/usr/lib/python3/dist-packages/mailman/templates/fr/list:admin:action:post.txt
owner
:
root
group
:
root
mode
:
0644
-
name
:
Indicate role in motd
template
:
src
:
update-motd.d/05-service.j2
...
...
This diff is collapsed.
Click to expand it.
roles/mailman3/templates/mailman/templates/fr/list:admin:action:post.txt.j2
0 → 100644
+
15
−
0
View file @
1f7a86d4
En tant qu’administrateur d’une liste, votre autorisation est nécessaire pour
valider le message suivant :
Liste : $listname
De : $sender_email
Objet : $subject
Ce message a besoin d’une validation car :
$reasons
Vous pouvez vous rendre sur votre tableau de bord pour donner suite, ou non, à
cette requête :
https://{{ mailman3.web_domains[0] }}/postorius/lists/$listname/held_messages
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment