Merge branch 'master' into dev

This commit is contained in:
2023-05-12 16:51:03 -04:00
5 changed files with 21 additions and 35 deletions

View File

@ -168,6 +168,7 @@ def trans_command_retr(mails: MailList, req: Request):
write(ok("Contents follow"))
write(get_mail(entry))
write(end())
mails.delete(req.arg1)
else:
write(err("Not found"))

View File

@ -109,6 +109,7 @@ class MailEntry:
def files_in_path(path):
for _, _, files in os.walk(path):
return [(f, os.path.join(path, f)) for f in files]
return []
def get_mails_list(dirpath: Path) -> List[MailEntry]: