Forward the smtpserveroption to the local command
PATCH 1/1 Forward the smtpserveroption to the local command
Additional arguments to the smtp command are needed depending on the sendemail identity. Append the additional arguments in smtpserveroptions to the smtp command.
Signed-off-by Joel Granados <[email protected]>
--- src/b4/__init__.py | 3 +++ 1 file changed, 3 insertions(+)
src/b4/__init__.py +3 -0
@@ -3783,6 +3783,9 @@ def get_smtp(dryrun: bool = False) -> Tuple[Union[smtplib.SMTP, smtplib.SMTP_SSL envpair = email.utils.parseaddr(env_sender) if envpair[1]: smtp += ['-f', envpair[1]] + server_option = sconfig.get('smtpserveroption', '') + if server_option: + smtp += [server_option] logger.debug('sendmail command: %s', ' '.join(smtp)) return smtp, fromaddr
---
base-commit: a95708143ab35fe035ce852b72b94e68bbcb4f58
change-id: 20240723-master-51eef6c00b1d
Best regards,
Signature · 1 line
Joel Granados <[email protected]>
Konstantin Ryabitsev
AppliedQuoted 5 lines · Joel Granados
Additional arguments to the smtp command are needed depending on the sendemail identity. Append the additional arguments in smtpserveroptions to the smtp command.
Applied, thanks!
[1/1] Forward the smtpserveroption to the local command
commit: 37811c93f50e70f325e45107a9a20ffc69f2f6dc
Best regards,
Signature · 1 line
Konstantin Ryabitsev <[email protected]>