Output entire path in dry-run send_mail
PATCH 1/1 Output entire path in dry-run send_mail
This makes it copy-and-paste-friendly. Even if the directory is output before the patches, allowing to double click the terminal do select the file helps when we are going to inspect/edit the patch.
Signed-off-by Lucas De Marchi <[email protected]>
--- src/b4/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/b4/__init__.py +1 -1
@@ -4084,8 +4084,8 @@ def send_mail(smtp: Union[smtplib.SMTP, smtplib.SMTP_SSL, None], msgs: Sequence[ if dryrun: if output_dir: filen = '%s.eml' % ls.get_slug(sep='-') - logger.info(' %s', filen) write_to = os.path.join(output_dir, filen) + logger.info(f' %s', write_to) with open(write_to, 'wb') as fh: fh.write(bdata) continue