Merge branch 'master' into dev

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

View File

@ -7,6 +7,7 @@ name = "pypi"
[packages] [packages]
aiosmtpd = "*" aiosmtpd = "*"
python-jata = "*"
[requires] [requires]
python_version = "3.8" python_version = "3"

34
Pipfile.lock generated
View File

@ -1,34 +0,0 @@
{
"_meta": {
"hash": {
"sha256": "6855597726a44b85fab69f61e906c6c6082a751642724c4ce13e3ddbece06d64"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.8"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.org/simple",
"verify_ssl": true
}
]
},
"default": {
"aiosmtpd": {
"hashes": [
"sha256:b7ea7ee663f3b8514d3224d55c4e8827148277b124ea862a0bbfca1bc899aef5"
],
"index": "pypi",
"version": "==1.2"
},
"atpublic": {
"hashes": [
"sha256:7dca670499e9a9d3aae5a8914bc799475fe24be3bcd29c8129642dda665f7a44"
],
"version": "==1.0"
}
},
"develop": {}
}

17
TODO.md
View File

@ -1,5 +1,6 @@
# TODO # TODO
DEV
1. unittests 1. unittests
1. Web interface 1. Web interface
1. Custom email processing 1. Custom email processing
@ -14,3 +15,19 @@
2. imap 2. imap
3. handle connection disconnect 3. handle connection disconnect
4. rethink deleted items 4. rethink deleted items
MASTER
1. tests!
2. docker support
3. multi domain
4. [pop] auto delete
5. [pop] TOP command
6. merge with cloud_test branch
7. User timeout for POP
8. unittests
9. Web interface
10. Custom email processing
11. Refactor smtp controller
12. pip installable package
13. Listen on port 465 for smtp too

View File

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

View File

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