Little change to account_dunning_email to make extending it easier

I extended account_dunning_email to meet my clients requests. To do that I extended the function def _email to make the changes (https://hg.tryton.org/modules/account_dunning_email/file/tip/account.py#l112). But now I also want to add a BCC email-address to it. Unfortunately that means also extending the def send_email function.

With an small change this can be avoided, so a developer only needs to extend the def _email to do all the work. This change is to modify:

msg = self._email(from_, to, cc, bcc, languages)
to_addrs = [e for _, e in getaddresses(to + cc + bcc)]

to:

msg = self._email(from_, to, cc, bcc, languages)
to_addrs = [e for _, e in getaddresses(msg['To'] + msg['Cc'] + msg['Bcc'])]

Any thought on this?

Answering myself. My mailserver stood in the way and rejected the BCC mail address :man_facepalming: .

There is no need to make any change. The modified BCC in def _email gets back to the def send_email.