<feed xmlns='http://www.w3.org/2005/Atom'>
<title>poul-list/src, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.delayed.space/poul-list/atom?h=master</id>
<link rel='self' href='https://git.delayed.space/poul-list/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.delayed.space/poul-list/'/>
<updated>2026-05-09T01:27:15Z</updated>
<entry>
<title>Add queue for mail processing</title>
<updated>2026-05-09T01:27:15Z</updated>
<author>
<name>Mroik</name>
<email>mroik@delayed.space</email>
</author>
<published>2026-05-09T01:23:52Z</published>
<link rel='alternate' type='text/html' href='https://git.delayed.space/poul-list/commit/?id=64092a27ba83da09dc8da50f0cbaf9bc623d5891'/>
<id>urn:sha1:64092a27ba83da09dc8da50f0cbaf9bc623d5891</id>
<content type='text'>
Add DB table for queue. It is necessary in case the delivery fails and
we'll need to retry.

Signed-off-by: Mroik &lt;mroik@delayed.space&gt;
</content>
</entry>
<entry>
<title>Fix last touchups on SmtpServer and add test</title>
<updated>2026-04-15T02:36:35Z</updated>
<author>
<name>Mroik</name>
<email>mroik@delayed.space</email>
</author>
<published>2026-04-15T00:20:50Z</published>
<link rel='alternate' type='text/html' href='https://git.delayed.space/poul-list/commit/?id=44de384e68732ad31b8d258580036b0a10004b71'/>
<id>urn:sha1:44de384e68732ad31b8d258580036b0a10004b71</id>
<content type='text'>
Fix some mistakes in the SmtpServer implementation and add test.

This test is only for the ideal interaction, it doesn't cover all checks
for the malformed or out of order commands. This is left for later.

Signed-off-by: Mroik &lt;mroik@delayed.space&gt;
</content>
</entry>
<entry>
<title>Remove extra String alloc improving memory usage</title>
<updated>2026-04-13T04:56:12Z</updated>
<author>
<name>Mroik</name>
<email>mroik@delayed.space</email>
</author>
<published>2026-04-12T19:16:17Z</published>
<link rel='alternate' type='text/html' href='https://git.delayed.space/poul-list/commit/?id=784bf87d6fbf59194412c1dafeb56b3ed3946106'/>
<id>urn:sha1:784bf87d6fbf59194412c1dafeb56b3ed3946106</id>
<content type='text'>
Signed-off-by: Mroik &lt;mroik@delayed.space&gt;
</content>
</entry>
<entry>
<title>Move logging for premature TCP termination</title>
<updated>2026-04-13T04:56:12Z</updated>
<author>
<name>Mroik</name>
<email>mroik@delayed.space</email>
</author>
<published>2026-04-12T01:23:32Z</published>
<link rel='alternate' type='text/html' href='https://git.delayed.space/poul-list/commit/?id=e3854173d720fbbc4f98a7939ac667fcac007ec1'/>
<id>urn:sha1:e3854173d720fbbc4f98a7939ac667fcac007ec1</id>
<content type='text'>
It logs anytime we break out of the loop, therefore logging a connection
closed by remote regardless of what happened.

Move logging to closed connection check and make it a warn instead of an
info.

Signed-off-by: Mroik &lt;mroik@delayed.space&gt;
</content>
</entry>
<entry>
<title>Add SMTP QUIT command</title>
<updated>2026-04-13T04:56:12Z</updated>
<author>
<name>Mroik</name>
<email>mroik@delayed.space</email>
</author>
<published>2026-04-11T22:08:02Z</published>
<link rel='alternate' type='text/html' href='https://git.delayed.space/poul-list/commit/?id=9fd2ab82f027c7434b4fe67d82874a017a531afb'/>
<id>urn:sha1:9fd2ab82f027c7434b4fe67d82874a017a531afb</id>
<content type='text'>
Signed-off-by: Mroik &lt;mroik@delayed.space&gt;
</content>
</entry>
<entry>
<title>Fix reply messages</title>
<updated>2026-04-13T04:56:12Z</updated>
<author>
<name>Mroik</name>
<email>mroik@delayed.space</email>
</author>
<published>2026-04-11T21:56:35Z</published>
<link rel='alternate' type='text/html' href='https://git.delayed.space/poul-list/commit/?id=3b8b520400060eef059c85e3ad7bfefccd17e29f'/>
<id>urn:sha1:3b8b520400060eef059c85e3ad7bfefccd17e29f</id>
<content type='text'>
The replies do not end with &lt;CRLF&gt;. Fix it.

Signed-off-by: Mroik &lt;mroik@delayed.space&gt;
</content>
</entry>
<entry>
<title>Add a note on email encodings</title>
<updated>2026-04-13T04:56:11Z</updated>
<author>
<name>Mroik</name>
<email>mroik@delayed.space</email>
</author>
<published>2026-04-11T03:22:40Z</published>
<link rel='alternate' type='text/html' href='https://git.delayed.space/poul-list/commit/?id=040279c48c893aae28de6fe5522f5cdc1f020eb3'/>
<id>urn:sha1:040279c48c893aae28de6fe5522f5cdc1f020eb3</id>
<content type='text'>
Leave a note for future devs that the server might receive an email with
an encoding different from ASCII or UTF-8. This can be problematic as
String accepts only UTF-8 valid strings.

In TODO when I say "handle non UTF-8 encodings", I think it would be
totally ok to just disregard anything that isn't UTF-8 and return a
"rejected for policy" error to the MTA. Otherwise we'll just have to put
`encoding_rs` in the mix.

Signed-off-by: Mroik &lt;mroik@delayed.space&gt;
</content>
</entry>
<entry>
<title>Replace std socket IO with tokio socket IO</title>
<updated>2026-04-13T04:56:11Z</updated>
<author>
<name>Mroik</name>
<email>mroik@delayed.space</email>
</author>
<published>2026-04-11T03:14:41Z</published>
<link rel='alternate' type='text/html' href='https://git.delayed.space/poul-list/commit/?id=203f02b88e75a9b604b27922aecaceb31c44d20a'/>
<id>urn:sha1:203f02b88e75a9b604b27922aecaceb31c44d20a</id>
<content type='text'>
Since the TcpListener (and related) operations are blocking, they would
prevent other tasks from running by monopolizing CPU time.

This should've been done from the start but I'm not used to directly
using low level primitives in an async environment as I would normally
use a high level library for this, so I forgot.

Signed-off-by: Mroik &lt;mroik@delayed.space&gt;
</content>
</entry>
<entry>
<title>Do not propagate TcpListener.accept() errors</title>
<updated>2026-04-13T04:56:11Z</updated>
<author>
<name>Mroik</name>
<email>mroik@delayed.space</email>
</author>
<published>2026-04-11T02:02:53Z</published>
<link rel='alternate' type='text/html' href='https://git.delayed.space/poul-list/commit/?id=ffc0ad7c86408193b213c46cbca5c0d8b60f8632'/>
<id>urn:sha1:ffc0ad7c86408193b213c46cbca5c0d8b60f8632</id>
<content type='text'>
Errors produced by the socket may not be necessarily fatal, meaning that
while a connection might be dropped the process should be able to resume
execution as if nothing happened and accept the next connection.

Error handling for accept() has been copied from NGINX's [1].

[1] https://stackoverflow.com/questions/76955978/which-socket-accept-errors-are-fatal

Signed-off-by: Mroik &lt;mroik@delayed.space&gt;
</content>
</entry>
<entry>
<title>Add mail processing scaffolding</title>
<updated>2026-04-13T04:56:11Z</updated>
<author>
<name>Mroik</name>
<email>mroik@delayed.space</email>
</author>
<published>2026-04-09T22:21:25Z</published>
<link rel='alternate' type='text/html' href='https://git.delayed.space/poul-list/commit/?id=b336fd39444e8089d35a7a2bd4c0c3e8228c6c36'/>
<id>urn:sha1:b336fd39444e8089d35a7a2bd4c0c3e8228c6c36</id>
<content type='text'>
After receiving the email we don't want to process it in the same thread
as soon as we can, instead we queue it to a MailProcessor. This allows
us to be more flexible with the pipeline and reduce the amount of
concurrency for the database connection. This also helps with writing
possible fences around resource consumption.

Signed-off-by: Mroik &lt;mroik@delayed.space&gt;
</content>
</entry>
</feed>
