From 4fd9012133d705e2378fd7589371abb400b71b9c Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 19 Jan 2023 11:51:57 -0300 Subject: [PATCH] Envoi mail bulletins: bcc multiple addr. --- app/scodoc/sco_bulletins.py | 4 ++-- app/scodoc/sco_preferences.py | 2 +- sco_version.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/scodoc/sco_bulletins.py b/app/scodoc/sco_bulletins.py index 8e2f29145b..e47177d648 100644 --- a/app/scodoc/sco_bulletins.py +++ b/app/scodoc/sco_bulletins.py @@ -1084,7 +1084,7 @@ def mail_bulletin(formsemestre_id, infos, pdfdata, filename, recipient_addr): recipients = [recipient_addr] sender = sco_preferences.get_preference("email_from_addr", formsemestre_id) if copy_addr: - bcc = copy_addr.strip() + bcc = copy_addr.strip().split(",") else: bcc = "" @@ -1094,7 +1094,7 @@ def mail_bulletin(formsemestre_id, infos, pdfdata, filename, recipient_addr): subject, sender, recipients, - bcc=[bcc], + bcc=bcc, text_body=hea, attachments=[ {"filename": filename, "mimetype": scu.PDF_MIMETYPE, "data": pdfdata} diff --git a/app/scodoc/sco_preferences.py b/app/scodoc/sco_preferences.py index 1a59633328..e0c8c0a359 100644 --- a/app/scodoc/sco_preferences.py +++ b/app/scodoc/sco_preferences.py @@ -1565,7 +1565,7 @@ class BasePreferences(object): "initvalue": "", "title": "e-mail copie bulletins", "size": 40, - "explanation": "adresse recevant une copie des bulletins envoyés aux étudiants", + "explanation": "adresse(s) recevant une copie des bulletins envoyés aux étudiants (si plusieurs, les séparer par des virgules)", "category": "bul_mail", }, ), diff --git a/sco_version.py b/sco_version.py index f62df4c933..d01a292e1f 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.4.28" +SCOVERSION = "9.4.29" SCONAME = "ScoDoc"