From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FROM_SUSPICIOUS_NTLD,FROM_SUSPICIOUS_NTLD_FP, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [168.235.81.73]) by inbox.vuxu.org (Postfix) with ESMTP id 8FBBD258A4 for ; Sat, 22 Jun 2024 17:40:07 +0200 (CEST) Received: from eve.beecloudy.net ([145.239.136.211]) by 9front; Sat Jun 22 11:38:35 -0400 2024 Received: from nuc (unknown [109.76.69.245]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (Client did not present a certificate) by eve.beecloudy.net (Postfix) with ESMTPSA id ED63EAF4E; Sat, 22 Jun 2024 17:38:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x80.stream; s=s1; t=1719070710; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Dl6bzH6kR6rLp1n9JD4pLjmfnE8apnAyIAqZooqDHks=; b=F7khaGHoN4u5lgFiP1axgB/YCSVMqL+baxtOeq7hk+0j9aGXMxp40rzlLf1mWGpfWiD6cp jJkiZV0l3UvG8HmFp0mQ5Lk0t2q/CHKIbIW8cB0wRYukV8XAWn6MfpInJi6h6TuTi9KRec jd04RM2mbdygh9IBEqFyL44uYQptC8Q= Message-ID: <55FCFE60D65B55537418BF484C64C6E8@nuc> To: 9front@9front.org From: Nicola Girardi Date: Sat, 22 Jun 2024 16:38:29 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: ED63EAF4E X-Spamd-Result: default: False [0.40 / 10.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[outgoing]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DKIM_SIGNED(0.00)[0x80.stream:s=s1]; NEURAL_HAM(-0.00)[-0.997]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:15502, ipnet:109.76.64.0/20, country:IE] X-Rspamd-Server: rspamd List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: self-healing standard API standard Subject: [9front] Mail: scroll top top of message Reply-To: 9front@9front.org Precedence: bulk Hi, I was looking to make acme Mail show the top of newly opened messages; I've used the scrollbar manually for years now and finally decided to try and automate that... this works for me, posting here in case it's useful for anyone else. ; git/diff mesg.c diff 900d08fb3c2517270cb15201a27eeda6eba5a522 uncommitted --- a/sys/src/cmd/upas/Mail/mesg.c +++ b/sys/src/cmd/upas/Mail/mesg.c @@ -294,7 +294,8 @@ } Bterm(wfd); free(home); - fprint(m->ctl, "clean\n"); + fprint(m->addr, "#0"); + fprint(m->ctl, "dot=addr\nshow\nclean\n"); return 0; }