Skip to contentSkip to conversation

Output entire path in dry-run send_mail

PATCH New Lucas De Marchi 1 participant 1 message May 28, 2025

lore
Share & tools
lore
#0 lore raw

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.

---
 src/b4/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/b4/__init__.py +1 -1
index a9d5906..3980bc6 100644
@@ -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