From b3704d34e2cec5db5f1dc9e86a211a0ac93c749d Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Sun, 12 Feb 2023 22:14:09 -0500 Subject: [PATCH 1/4] update TODO --- TODO.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/TODO.md b/TODO.md index d1dda23..198e8de 100644 --- a/TODO.md +++ b/TODO.md @@ -1,9 +1,16 @@ #TODO -1. User timeout for POP -1. unittests -1. Web interface -1. Custom email processing -1. Refactor smtp controller -1. pip installable package -1. Listen on port 465 for smtp too +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 From 22daadb20627300b6970bebe99a8b21d83ddef70 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Thu, 13 Apr 2023 18:50:37 -0400 Subject: [PATCH 2/4] Update deps and fix case when no mails found --- Pipfile | 2 +- Pipfile.lock | 23 +++++++++++++++++------ mail4one/poputils.py | 1 + 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/Pipfile b/Pipfile index 686f54f..98d97e2 100644 --- a/Pipfile +++ b/Pipfile @@ -9,4 +9,4 @@ name = "pypi" aiosmtpd = "*" [requires] -python_version = "3.7" +python_version = "3" diff --git a/Pipfile.lock b/Pipfile.lock index b1f57e5..a6e536e 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,11 +1,11 @@ { "_meta": { "hash": { - "sha256": "a5227f0d0fa7f8bbf0a5557162679decfad227c16cc4fec15e138a30cc6703d7" + "sha256": "cd44c5a29603af504ac09a891df42c6b649da6269ce69b77888fabb13ecf41c3" }, "pipfile-spec": 6, "requires": { - "python_version": "3.7" + "python_version": "3" }, "sources": [ { @@ -18,16 +18,27 @@ "default": { "aiosmtpd": { "hashes": [ - "sha256:b7ea7ee663f3b8514d3224d55c4e8827148277b124ea862a0bbfca1bc899aef5" + "sha256:f821fe424b703b2ea391dc2df11d89d2afd728af27393e13cf1a3530f19fdc5e", + "sha256:f9243b7dfe00aaf567da8728d891752426b51392174a34d2cf5c18053b63dcbc" ], "index": "pypi", - "version": "==1.2" + "version": "==1.4.4.post2" }, "atpublic": { "hashes": [ - "sha256:7dca670499e9a9d3aae5a8914bc799475fe24be3bcd29c8129642dda665f7a44" + "sha256:3098ee12d0107cc5009d61f4e80e5edcfac4cda2bdaa04644af75827cb121b18", + "sha256:37f714748e77b8a7b34d59b7b485fd452a0d5906be52cb1bd28d29a2bd84f295" ], - "version": "==1.0" + "markers": "python_version >= '3.7'", + "version": "==3.1.1" + }, + "attrs": { + "hashes": [ + "sha256:29e95c7f6778868dbd49170f98f8818f78f3dc5e0e37c0b1f474e3561b240836", + "sha256:c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99" + ], + "markers": "python_version >= '3.6'", + "version": "==22.2.0" } }, "develop": {} diff --git a/mail4one/poputils.py b/mail4one/poputils.py index 6f59ef9..22e55e8 100644 --- a/mail4one/poputils.py +++ b/mail4one/poputils.py @@ -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]: From a03228e323c1d5d88cb446874ee213fb89bf2414 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Fri, 5 May 2023 19:12:35 -0400 Subject: [PATCH 3/4] delete on retr --- mail4one/pop3.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mail4one/pop3.py b/mail4one/pop3.py index 0914dc9..8e33596 100644 --- a/mail4one/pop3.py +++ b/mail4one/pop3.py @@ -159,6 +159,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")) From df14e4a5ccdd0807eebe674e08183985a4e0fe37 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Fri, 12 May 2023 16:49:51 -0400 Subject: [PATCH 4/4] add jata --- Pipfile | 1 + Pipfile.lock | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Pipfile b/Pipfile index 98d97e2..ceb6984 100644 --- a/Pipfile +++ b/Pipfile @@ -7,6 +7,7 @@ name = "pypi" [packages] aiosmtpd = "*" +python-jata = "*" [requires] python_version = "3" diff --git a/Pipfile.lock b/Pipfile.lock index a6e536e..72af456 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "cd44c5a29603af504ac09a891df42c6b649da6269ce69b77888fabb13ecf41c3" + "sha256": "5c16e20a67c73101d465516d657e21c6c1d3f853ae16dcfe782b7f9e8ba139e5" }, "pipfile-spec": 6, "requires": { @@ -34,11 +34,19 @@ }, "attrs": { "hashes": [ - "sha256:29e95c7f6778868dbd49170f98f8818f78f3dc5e0e37c0b1f474e3561b240836", - "sha256:c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99" + "sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04", + "sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015" ], - "markers": "python_version >= '3.6'", - "version": "==22.2.0" + "markers": "python_version >= '3.7'", + "version": "==23.1.0" + }, + "python-jata": { + "hashes": [ + "sha256:3c05e3008721ebf19b95b6c51495afa9df6017f88356e4d48853034a20011579", + "sha256:ff4cd7ca75c9a8306b69ef6e878c296a5602f3279c6f9a82b6105b8eba764760" + ], + "index": "pypi", + "version": "==1.2" } }, "develop": {}