~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH todo.sr.ht] Only care about the mail handler's sock-group when using LMTP

Details
Message ID
<87k0r1b494.fsf@florness.com>
DKIM signature
pass
Download raw message
Patch: +4 -2
The "not None" logic was copied from listssrht:
https://git.sr.ht/~sircmpwn/lists.sr.ht/tree/372eda06cbef5f45946444ececad42751dad61d0/item/listssrht-lmtp#L349-352
---
 todosrht-lmtp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/todosrht-lmtp b/todosrht-lmtp
index d469339..3820219 100755
--- a/todosrht-lmtp
+++ b/todosrht-lmtp
@@ -332,7 +332,6 @@ class MailHandler:
            return "250 Unsubscribed"

async def create_server():
    sock_gid = getgrnam(cfg("todo.sr.ht::mail", "sock-group")).gr_gid
    handler = MailHandler()
    sock = cfg("todo.sr.ht::mail", "sock")
    if "/" in sock:
@@ -340,7 +339,10 @@ async def create_server():
                lambda: LMTP(handler, enable_SMTPUTF8=True),
                path=sock)
        os.chmod(sock, 0o775)
        os.chown(sock, os.getuid(), sock_gid)
        sock_group = cfg("todo.sr.ht::mail", "sock-group", default=None)
        if sock_group is not None:
            sock_gid = getgrnam(sock_group).gr_gid
            os.chown(sock, os.getuid(), sock_gid)
    else:
        host, port = sock.split(":")
        await loop.create_server(
-- 
2.30.1

[todo.sr.ht/patches] build success

builds.sr.ht
Details
Message ID
<C9FGPXCD6BQ8.21EMGI9IGH9UH@cirno2>
In-Reply-To
<87k0r1b494.fsf@florness.com> (view parent)
DKIM signature
missing
Download raw message
todo.sr.ht/patches: SUCCESS in 2m5s

[Only care about the mail handler's sock-group when using LMTP][0] from [David Florness][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/20411
[1]: mailto:david@florness.com

✓ #433868 SUCCESS todo.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/433868
✓ #433869 SUCCESS todo.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/433869
✓ #433870 SUCCESS todo.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/433870
Details
Message ID
<C9G42XAPE8FH.2OHA91OEZ7934@taiga>
In-Reply-To
<87k0r1b494.fsf@florness.com> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
Thanks!

To git@git.sr.ht:~sircmpwn/todo.sr.ht
   4fba3b7..396fe85  master -> master
Reply to thread Export thread (mbox)