]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Fixing class MailConfiguration in module pp_admintools.config.mail
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 7 Feb 2023 14:57:06 +0000 (15:57 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 7 Feb 2023 14:57:06 +0000 (15:57 +0100)
lib/pp_admintools/config/mail.py

index 1e28f4d1320d5116bd933d10c5e5f829712c0d61..b44161a7ac793ab8ebb3f33440a60be32b25a434 100644 (file)
@@ -32,7 +32,7 @@ from . import PpConfigurationError, PpBaseConfiguration
 
 from ..xlate import XLATOR
 
-__version__ = '0.2.2'
+__version__ = '0.2.3'
 LOG = logging.getLogger(__name__)
 
 _ = XLATOR.gettext
@@ -211,11 +211,11 @@ class MailConfiguration(PpBaseConfiguration):
                 for v in val:
                     result = self._split_mailaddress_tokens(v, _("recipient mail address"))
                     if result:
-                        self.mail_recipients.expand(result)
+                        self.mail_recipients += result
             else:
                 result = self._split_mailaddress_tokens(val, _("recipient mail address"))
                 if result:
-                    self.mail_recipients.expand(result)
+                    self.mail_recipients.expand += result
 
     # -------------------------------------------------------------------------
     def _eval_mail_cc(self, section_name, section):
@@ -235,11 +235,11 @@ class MailConfiguration(PpBaseConfiguration):
                 for v in val:
                     result = self._split_mailaddress_tokens(v, _("cc mail address"))
                     if result:
-                        self.mail_cc.expand(result)
+                        self.mail_cc.expand += result
             else:
                 result = self._split_mailaddress_tokens(val, _("cc mail address"))
                 if result:
-                    self.mail_cc.expand(result)
+                    self.mail_cc.expand += result
 
     # -------------------------------------------------------------------------
     def _eval_mail_reply_to(self, section_name, section):