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.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11621 invoked from network); 28 Jan 2021 22:51:37 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 28 Jan 2021 22:51:37 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 8AA252E355 for ; Thu, 28 Jan 2021 17:51:34 -0500 (EST) (envelope-from bounce.mM0906a3667a2e63e9683b92ea.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 885DB14BAF49; Thu, 28 Jan 2021 17:51:34 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (1024-bit rsa key sha1) header.d=pobox.com header.i=@pobox.com header.b=sFUN0wMu header.a=rsa-sha1 header.s=sasl x-bits=1024; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:from:to:subject:date:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=sysmsg-1; t=1611874294; bh=VU2GLisEcUZXF/WSPc8aNIt7IB/N5YnpHdV+Bib5WxE=; b= SrsPmwi3hv5K/YCGX0AajudK8gDd49mKoNyY7clXXVujnAcFuXDwgyYC1PPfLwXT o72u4T9d9tGZhuaE8AQT+MBudhlZ3tm7C1UGLdlEDGLb+Wn1z2qcUFtAW8fSDAT4 Ieg/HA6fDCt3l1ou1/bUIycaI/OFsefyBbX7J3VUJRo= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1611874294; b=HjN5KWxf6EX/w99HXI4lJJ2tuvmyxlmsbis5CkKlrwCdfEvSnP 3nERu4QAc5DT+Amf0YIFc/TNovpkZGwk0NNB097iSiLa92FY0ShwGbU34jhQnXCl nBmRvRt7mh47tBPGEcUpWdvH1AMtd0IFdlA56PBAtE0FeIgz0Ll4nqiDc= Authentication-Results: topicbox.com; arc=pass; dkim=pass (1024-bit rsa key sha1) header.d=pobox.com header.i=@pobox.com header.b=sFUN0wMu header.a=rsa-sha1 header.s=sasl x-bits=1024; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); dkim=pass (1024-bit rsa key sha1) header.d=pobox.com header.i=@pobox.com header.b=sFUN0wMu header.a=rsa-sha1 header.s=sasl x-bits=1024; x-aligned-from=pass (Address match); x-local-ip=pass; x-return-mx=pass header.domain=cpan.org policy.is_org=yes (MX Records found: pb-mx23.pobox.com,pb-mx9.pobox.com,pb-mx20.pobox.com,pb-mx22.pobox.com,pb-mx21.pobox.com,pb-mx10.pobox.com,pb-mx14.pobox.com,pb-mx11.pobox.com); x-return-mx=pass smtp.domain=cpan.org policy.is_org=yes (MX Records found: pb-mx23.pobox.com,pb-mx9.pobox.com,pb-mx20.pobox.com,pb-mx22.pobox.com,pb-mx21.pobox.com,pb-mx10.pobox.com,pb-mx14.pobox.com,pb-mx11.pobox.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=message-id :from:to:subject:date:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:list-unsubscribe; s=dkim-1; bh=GKxSUNZD 6vjk1mwxxWMshP7Dp4i4ShJwfebGrXBm+hg=; b=Fq70IL2AIrIstd50Sg3EhokV cJjx+PxSutVOKnHLTfN/V+0Kuxmf2ulTId/ApN39NE89f6wmK7hQNGnfsDtrRSvp OeJYNWtNPDBTQWOChZlRMTlRNLD5WevkYDgzeYvp5BcRnRntWmwjY4Oh/c8GYg2V lhLw/PIa16aDDlsTQNs= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 2CC0C14E5A6C for <9fans@9fans.net>; Thu, 28 Jan 2021 17:51:25 -0500 (EST) (envelope-from unobe@cpan.org) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id DAE83A5873B; Thu, 28 Jan 2021 17:51:25 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1611874285; b=KbNZ88v3M/uHrvOTSmVbMwivZARjfdIM32lp4Mwp13/ywPYJ54 u3PjB+ILteW3k20ck6ESNqEZ3+irnzfVAJxNwT2aIYu5/a+v1rBA6JWqhjKoc2EI kIWEySv4aI184ALT4bdvgxOllVfIB+iA+o/m2SL6NOKgHbHj8NZgHqmnXHbRrKhw /dkFN6P+8sT1vHaNlFslnTPxpqDUcadRi3ItgCBFxLkxlKqVYX5YF5Da9Maoezvv jWS55HFRg7gE0LPkFv5HiN4GuhOh9jR2f6EMPQhQ7j2AL7TYEXEYk1UCdM7XUKSZ SmbHjsWExi/MPKYMqngN5Se1zKaZ7+EJ7EKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:from:to:subject:date:mime-version :content-type:content-transfer-encoding; s=arcseal; t= 1611874285; bh=vKym99qqLVjBcu1w76ohBQGRSf5ES1Tr4ojSuuLAA64=; b=S IkM6meXHfbPUIR9Mf5NFf9s73GkkDadX9DeY95e6gD8iL0zxTjCG34cusVtfmbUz AfYz3+WftDUf40zat2n7bltUFppxzJDxqthNpIH/i7TwxJkv2uKckAeWFUMxtsIX Y9EfDX7+tp79VZv8HaNbwgmSIKIVvNdvuCXXFJxo8dPz0o9qH9UiG8he5iXtsU20 B0+oyRd4VwUITlpiLuBhV9SuPmxLgcxgw6bFfcHpuQJ7UD3HeomQM9UZ9fYt76s3 KU+fl46SxSQCnL+2uubRwJiBqClNViKMl2IzqYNkuP3iljUmphxiwYqjddD0SJ/P tZ7QNx17K325l/tzqV9zg== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); dkim=pass (1024-bit rsa key sha1) header.d=pobox.com header.i=@pobox.com header.b=sFUN0wMu header.a=rsa-sha1 header.s=sasl x-bits=1024; x-aligned-from=pass (Address match); x-local-ip=pass; x-return-mx=pass header.domain=cpan.org policy.is_org=yes (MX Records found: pb-mx23.pobox.com,pb-mx9.pobox.com,pb-mx20.pobox.com,pb-mx22.pobox.com,pb-mx21.pobox.com,pb-mx10.pobox.com,pb-mx14.pobox.com,pb-mx11.pobox.com); x-return-mx=pass smtp.domain=cpan.org policy.is_org=yes (MX Records found: pb-mx23.pobox.com,pb-mx9.pobox.com,pb-mx20.pobox.com,pb-mx22.pobox.com,pb-mx21.pobox.com,pb-mx10.pobox.com,pb-mx14.pobox.com,pb-mx11.pobox.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeduledrfedtgddugeejucdltddurdegudehrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgf nhhsuhgsshgtrhhisggvpdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttd enucenucfjughrpefkhffvufffgggtgfesthejjedttddtvdenucfhrhhomheptfhomhgr nhhouceouhhnohgsvgestghprghnrdhorhhgqeenucggtffrrghtthgvrhhnpeeuheekff etjedvieeuvddvffeileegveelleevveehleegueeffeehgfehtedtffenucffohhmrghi nhepmhgvfhhrohhmrdhmvgdpvgigrghmphhlvgdrtghomhenucfkphepuddtrdeltddrfe dtrdehgedpgeejrdefgedrudefhedrudekieenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepihhnvghtpedutddrledtrdeftddrheegpdhhvghlohepphgsqdhsmhhtph dvrdhpohgsohigrdgtohhmpdhmrghilhhfrhhomhepoehunhhosggvsegtphgrnhdrohhr gheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [10.90.30.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Thu, 28 Jan 2021 17:51:24 -0500 (EST) (envelope-from unobe@cpan.org) Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id BF8A7B46B4 for <9fans@9fans.net>; Thu, 28 Jan 2021 17:51:24 -0500 (EST) (envelope-from unobe@cpan.org) Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id B76DAB46B3 for <9fans@9fans.net>; Thu, 28 Jan 2021 17:51:24 -0500 (EST) (envelope-from unobe@cpan.org) Received: from samwise (unknown [47.34.135.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 10C00B46B1 for <9fans@9fans.net>; Thu, 28 Jan 2021 17:51:23 -0500 (EST) (envelope-from unobe@cpan.org) Message-ID: From: Romano To: 9fans@9fans.net Subject: Re: [9fans] Acme Mail editable from address Date: Thu, 28 Jan 2021 14:51:22 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Pobox-Relay-ID: 58D136FE-61BB-11EB-996F-74DE23BA3BAF-09620299!pb-smtp2.pobox.com Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 5c2892ac-61bb-11eb-9211-f81f404d83bc Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UOThmNTdhODc3MTQ3NjhmYi1NMDkwNmEzNjY3YTJlNjNlOTY4M2I5?= =?UTF-8?B?MmVhPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M0906a3667a2e63e9683b92ea:1:W_0YOeJbjrz0dhqjJvnQuFWigkvr0JapFUG_OO0bt0g > Quoth pouya+lists.9fans@nohup.io: >> Upas/marshal already supports that by setting the upasname env >> variable, or did you mean to have it as a flag or taken from the >> headers in the input? >=20 > I was thinking that >=20 > echo From: foo; message | upas/marshal >=20 > should be roughly equivalent to: >=20 > upasname=3Dfoo > echo message | upas/marshal >=20 > but it may be better to just use a pipefrom. Take what I say with a big a grain of salt--I set it up months ago and haven't considered it again after Ori's re-work in 9front on mail-related things. I am not using my own smtp server, but call out to different ones based on the address I'm using. For my setup, I had to set both the env var and add the 'From:' line, IIRC. I have wrapper scripts that I can click on to send an e-mail while in Acme, specifying which account I want to send from. It's probably more convoluted than it needs to be, but I just wanted to get mail working on 9front. So in my wrapper script I setup upasname env var and also start off the message with a 'From:' line: upasname=3Dmyacct@example.com echo From: Myname '<'^$upasname^'>' >/tmp/from.$upasname mailfrom $upasname $* The last call to mailfrom calls /bin/mailfrom, which contains this: #!/bin/rc upasname=3D$1 shift if (~ $winid '') err=3D`{echo -n Cannot find window id} if (! test -d /mnt/acme/^$winid) err=3D`{echo -n usage: Must be run in Acme} if (~ $upasname '') err=3D`{echo -n usage: Must set upasname} if (! ~ $err '') { echo $err status=3D$err exit } if (! test -f /tmp/from.$upasname) echo From: $upasname >/tmp/from.$upasname cat /tmp/from.$upasname /mnt/acme/$winid/body | upas/marshal -8 $* rm /tmp/from.$upasname /mail/lib/fromfiles contains one line, which refers to /mail/lib/from.me: from.me /mail/lib/from.me has lines with tab-separated values between the e-mail from address I use ($upasname) and the mail account corresponding to it: myacct+bingo@example.com myaccount@smtp1.example.com myacct@example.com myotheraccount@smtp2.example.com In /mail/lib/remotemail, I have cases for the different smtp servers: #!/bin/rc shift sender=3D$1 shift addr=3D$1 shift fd=3D`{/bin/upas/aliasmail -f $sender} switch($fd){ case smtp1.example.com addr=3D(-u user1 tcp!^$fd^!ssmtp) case smtp2.example.com addr=3D(-u user2 tcp!^$fd^!ssmtp) case *.* ; case * fd=3Dyour.domain } exec /bin/upas/smtp -a -t -h $fd $addr $sender $* Hopefully what I wrote above is more helpful than not. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T98f57a87714768fb-M0906a= 3667a2e63e9683b92ea Delivery options: https://9fans.topicbox.com/groups/9fans/subscription