From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32183 invoked from network); 20 Feb 2021 13:43:59 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 20 Feb 2021 13:43:59 -0000 Received: from mail-ej1-f46.google.com ([209.85.218.46]) by 1ess; Sat Feb 20 08:37:52 -0500 2021 Received: by mail-ej1-f46.google.com with SMTP id jt13so21106842ejb.0 for <9front@9front.org>; Sat, 20 Feb 2021 05:37:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=Xz2Ubkwg7v0AKqD+SoTkkWv1EmJRvFMLmTM5R3pCoXY=; b=VEZ/PqoP5zArwLLIiLM/3JiS1qSg1Wt2QcU1J+yS+pwvP9JDsCMIlpoA/e5i2E8tv0 Bx0wuNiTrdMWBi5H/HFsHXWTOJYThIWnnOXOOMazJsTtiwCg4WILKtTHuI46H7rXORRB ir4xp55YgnBIeb6WlOxq+1GPzKKUdAdni/ei0TjgLWUdbs/77cfIH2GEON7OPdIPcw1J RZOwHmXKhn+wk04k5osTbwoNFmqwTOqAGDOmviWg420M3CqL+DsHuXklGTyYcYw3B+oN J9m2bv+49bKmcNHUmXISlm2BI96jbO3jPBan3u1YZq03DaZELb6VrkQ/e9ZACy3iQZoS a5Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=Xz2Ubkwg7v0AKqD+SoTkkWv1EmJRvFMLmTM5R3pCoXY=; b=TIy8tJ2Tei7+GGQjPCLAXkMeKk7t8MjX/2BznxRyKYXOxbMPXTmVnWXptiGa0pKrPi Wd4EJhKmW5ntYz62hMF4em9YhnSXB4Sqm65/J3NTuYiE/KdVMQSZ+Tr/sNW9dce+Ajf0 nFJn220JPf4oNeQaqYaa/QI+kwmTL/uQ2BCLEACSnBtCa98Hpi61bntwkEBnw5JCq1WX WqpG6Gnaf19kGdxfdW2+kaIBHV5/QIHbZ/21quj8In2axWY9uXvUWupXZfW7VolmIEEy G1R37cA13M/0H6q+BExCnCdeNeRdD2exXFkH/55R6SGd+iJ2wkOIyyTbaHLgkZwaDZKE Te5A== X-Gm-Message-State: AOAM5305AwlMxJd5tXOWEUCgcdoECiyAyzPNuiVbm/fZ4+wK226+q9Oa 3rN6Ja8pLi7awyzIaxJZfD+gK96JeSkfYuQTMPFRs84w X-Google-Smtp-Source: ABdhPJyQBywdYLnfu3uxlN5Jr09ojlzD4hC7UJWlIUHunnyyIHoZ8qL/IbzZvPJRpTGB06j1vgjdOTpU3RV6qreKAis= X-Received: by 2002:a17:906:5453:: with SMTP id d19mr10746098ejp.150.1613828262986; Sat, 20 Feb 2021 05:37:42 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a17:906:28d0:0:0:0:0 with HTTP; Sat, 20 Feb 2021 05:37:42 -0800 (PST) In-Reply-To: <9900841C0B876FC9E53FAC05828DADFA@sirjofri.de> References: <9900841C0B876FC9E53FAC05828DADFA@sirjofri.de> From: hiro <23hiro@gmail.com> Date: Sat, 20 Feb 2021 14:37:42 +0100 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: private SQL over ORM NoSQL package singleton Subject: Re: [9front] [Patch] Mail fails to send attachments Reply-To: 9front@9front.org Precedence: bulk gmail still displays your mails weirdly, might be unrelated but not sure: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=3D"upas-kbnxydoadswlscajpsgakobprj" <<< this seems to be ignored by my gmail that displays the message. is it too early? shouldn't it be the last line in the headers? List-ID: <9front.9front.org> <<< obviously this got added by 9front mailing list... might be a harmful interaction with your header... ? List-Help: X-Glyph: =E2=9E=88 X-Bullshit: encrypted interface-aware base high-performance frontend Subject: Re: [9front] [Patch] Mail fails to send attachments Reply-To: 9front@9front.org Precedence: bulk << this empty line marks the beginning of the message... This is a multi-part message in MIME format. << ...which is why gmail displays this --upas-kbnxydoadswlscajpsgakobprj << wrote: > This is a multi-part message in MIME format. > --upas-kbnxydoadswlscajpsgakobprj > Content-Disposition: inline > Content-Type: text/plain; charset=3D"US-ASCII" > Content-Transfer-Encoding: 7bit > > Save outgoing files in user mailbox, fixes closed pipe bug > > I noticed it is no closed pipe, but the constructed foldername for the > save location was built using the upasname variable, which can be set > to an alias. > > This patch fixes that and uses the logged in username instead. > Therefore it opens the file correctly and the write works. > > For example, before: > > upasname: joel@sirjofri.de > foldername: /mail/box/joel@sirjofri.de/outgoing > > after: > > upasname: joel@sirjofri.de > foldername: /mail/box/sirjofri/outgoing > > If an attachment is here, then the patch works (on my machine, at > least). > > We should still check the returned file descriptor, just in case the > user has no mailbox directory. > > sirjofri > > . > --upas-kbnxydoadswlscajpsgakobprj > Content-Disposition: inline > Content-Type: text/plain; charset=3D"US-ASCII" > Content-Transfer-Encoding: 7bit > > diff -r 297026d9dc30 sys/src/cmd/upas/marshal/marshal.c > --- a/sys/src/cmd/upas/marshal/marshal.c Thu Feb 18 21:40:30 2021 +0100 > +++ b/sys/src/cmd/upas/marshal/marshal.c Sat Feb 20 14:09:26 2021 +0100 > @@ -1086,7 +1086,7 @@ > case 0: > close(pfd[0]); > /* BOTCH; "From " time gets changed */ > - b =3D openfolder(foldername(nil, user, rcvr), time(0)); > + b =3D openfolder(foldername(nil, login, rcvr), time(0)); > fd =3D b? Bfildes(b): -1; > printunixfrom(fd); > tee(0, pfd[1], fd); > --upas-kbnxydoadswlscajpsgakobprj-- >