From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f169.google.com ([209.85.167.169]) by ewsd; Fri Oct 16 21:07:46 -0400 2020 Received: by mail-oi1-f169.google.com with SMTP id c13so4543211oiy.6 for <9front@9front.org>; Fri, 16 Oct 2020 18:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:to:subject:date:in-reply-to:mime-version; bh=JonlP5/8DQbmQQY8kiQIgPltAgDU1v+tgDa55MO7CrE=; b=iUJ9QPUkDkYOM0+QWNODoKdqsQnLXFSzdjom3WLXAoeUcf/AQHAdojEr918AfWRUwA IQhdsp8IZz5OFNqXhqOvZdNGbOK94GWb+kYQck6CPBTBAUuy1JH0TEhIbnz50vG3xwzF QIlONWZJgD/Qtsr/Url7fFYBUdV+KRQMrxNQRLS9Ow2zJ4i0uxMxSUZVLGgf+8YobbE1 didu7+hM1gUssWHEuJO/J+z45WZe5YPZel7s8jftYztibtffNDXf7Rr81snr159CziAc MQai8eZc7mwP9WxV3UnJnwuCz1CebqABsj+DYcfMC9vw4cq8bZOdgZ6BPtjrBGtDNhmG kvrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:to:subject:date:in-reply-to :mime-version; bh=JonlP5/8DQbmQQY8kiQIgPltAgDU1v+tgDa55MO7CrE=; b=TsL+6Yl1iH0PtxRw2HByK4z5IlwN6WBo61HAt+gj3rA/YwvXFmsbxQ+u+1Ps1wsMit CVwgHE15enZ9cM/80YhdvsJjs4o/DNvI65KBhYpj7WyPWE3oc683V4sU2fScp4iq56Yx PgecVAgfkGm3E3NrkfRkRKe398xISwynWZwIZoU8io9VXLkyGzLQVDCtPIX7Eswc8Qca QSCZv+TqLy5qSkJnc1jPjTsuQ4VUd3Cv+9Do8Bt/CpWCuRSSlq+UkBM8De2mHPJkj2C4 wpMmMh7lKgkbePn4FrtNe/l2caqvffDK2mLCRa6q33O/oHYnDFLksU3CiC8HP5aVMYGq EzMw== X-Gm-Message-State: AOAM532bAncUnVbX2x47dstZUyPmqloTR3Q9epOC65P1XezVA6SLJBNt +Jt4TLWmtSxAXhPi1DngEQPRcbTxeuUANQ== X-Google-Smtp-Source: ABdhPJylyE+PvPWOYiUpWrIZtFo83ji6Q16lDW7QIr+Zer+pcfjW0kMd7zaA09H6RVtGX6G/nZLOPA== X-Received: by 2002:aca:1c16:: with SMTP id c22mr4407453oic.121.1602896860663; Fri, 16 Oct 2020 18:07:40 -0700 (PDT) Return-Path: Received: from think9term.covert9net (67-198-106-217.dyn.grandenetworks.net. [67.198.106.217]) by smtp.gmail.com with ESMTPSA id v123sm1535246oif.29.2020.10.16.18.07.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Oct 2020 18:07:40 -0700 (PDT) From: covertusername967@gmail.com X-Google-Original-From: glenda@gmail.com Message-ID: <9FB68A24BC1E203608435750D97B32C0@gmail.com> To: alex@musolino.id.au, 9front@9front.org Subject: Re: [9front] make faces generic Date: Fri, 16 Oct 2020 20:07:26 -0500 In-Reply-To: <290B9ACF9C13F61A73FEB935403A46E7@musolino.id.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-oawvavljtkqjvttqeedilhzevs" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: proxy just-in-time firewall markup-based generator This is a multi-part message in MIME format. --upas-oawvavljtkqjvttqeedilhzevs Content-Disposition: inline Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit I could probably put together an 'finit' control messages for /mail/fs/ctl that does the same thing. Also, here's a patch for the manpage, as well as one that removes /bin/seemail: diff -r e05e4b6c6546 rc/bin/seemail --- a/rc/bin/seemail Mon Oct 12 02:03:52 2020 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -#!/bin/rc - -if(~ $1 -i) exec faces -hi -if not exec faces -h diff -r e05e4b6c6546 sys/man/1/faces --- a/sys/man/1/faces Mon Oct 12 02:03:52 2020 +0200 +++ b/sys/man/1/faces Fri Oct 16 20:06:45 2020 -0500 @@ -1,124 +1,77 @@ .TH FACES 1 .SH NAME -faces, seemail, vwhois \- mailbox interface +faces, vwhois \- notification interface .SH SYNOPSIS .B faces -[ -.B -ih -] [ -.B -m -.I maildir -] -.br -.B seemail -.br + .B vwhois .I person \&... .SH DESCRIPTION The .I faces -command monitors incoming mail and -displays in its window a representation of the user's mail box -using a small image for each message. +command monitors /mnt/plumb/notify and +displays faces in its window for each well-formed message recieved +on this port. The image is typically a portrait of the sender. Which image to -display is determined by two directories /usr/$user/lib/face -and /lib/face. Entries in /usr/$user/lib/face take priority over -those in /lib/face. See +display is determined by the `sender' and `facedir' attributes +in the plumb message, with facedir defaulting to /lib/face. Entries in +/usr/$user/lib/face take priority over those in facedir. See .IR face (6), for how these directories are organised. -.PP -If the user is running -.IR plumber (4), -.I faces -reacts to plumb messages to the -.B seemail -port, -typically from -.BR upas/fs , -and is thus notified of message additions and deletions. +Additionally, the `sender' attribute can optionally be formatted as follows: +.EX + sender@site +.EE +This allows further control over which face is shown. .PP Right-clicking on a message icon causes that message to be `plumbed' to -.BR showmail . -A typical plumb action will be to display the message, such as by -the rule +the destination port specified in the original plumbing message, in the +`dst' attribute. +Usually, the original generating application is listening on this port, +but if it is not, a plumbing rule can be specified like .EX plumb start window mail -s $0 .EE -The -.IR acme (1) -mail reader listens to the -.B showmail -port automatically. +If not specified, the message is plumbed back to the `none' port. +All of the attributes specified in the original message are preserved; faces +simply ignores extraneous ones. The `wdir' field in the original message is +preserved similarly. +Programs can also sent a `winid' attribute. Faces will make the +window with that id current. .PP -If the user is not running -.IR plumber , -.I faces -reads the log file -.F /sys/log/mail -and right-clicking has no effect. +An optional attribute is a `date' \- this is used to provide a more +accurate timestamp. If unset, faces will use the date it received the +notification, potentially differing from the date of the event that +generated the notification. +.PP +The `data' field of the plumbing message should be something unique that +allows the originating application to distinguish between notifications. +It is sent back to the application unaltered when the face is clicked +as the resulting plumbing message's `data' field. +The `digest' attribute should be a hash of the `data' field concatenated +with the application's name, to prevent hash collisions between +applications that might be using the same hash algorithm and similar +contents of `data' . .PP If arrows are visible, clicking on them will scroll the display. Middle-clicking on the arrows scrolls to the end. .PP -Starting -.B faces -with the -.B -i -flag causes -.B faces -to read the messages in -.BR /mail/fs/mbox -— or the mailboxes specified with the -.B -m -flag — -upon startup. -.PP -The -.B -m -option directs -.I faces -to watch for messages arriving in -.I maildir -instead of -.BR /mail/fs/mbox . -Multiple -.B -m -flags may be used to watch multiple mailboxes. -.PP -The -.B -h -flag causes a different, venerable behavior in which -the window displays the history of messages received -rather than the current state of the mail box. -In particular, faces are not removed from the screen when messages are deleted. -Also, in this mode clicking button 1 in the display will clear the window. -.PP -.I Seemail -is an -.IR rc (1) -script that invokes -.B faces -.BR -h . -.PP .I Vwhois tells .I faces to display the icons of the named -.IR persons , -without sending a message. +.IR persons . .SH FILES -.BR /mail/fs/mbox " mail directory. +.BR /mnt/plumb/notify " the destination port for notifications. .SH SOURCE .B /sys/src/cmd/faces .br -.B /rc/bin/seemail -.br .B /rc/bin/vwhois .SH "SEE ALSO" -.IR mail (1), -.IR marshal (1), -.IR nedmail (1), .IR plumber (4), .IR face (6), .IR plumb (6) +.SH BUGS +There is no -i option anymore; instead, programs that wish to re-send old +notifications should provide their own options to do so. --upas-oawvavljtkqjvttqeedilhzevs Content-Type: message/rfc822 Content-Disposition: inline Delivered-To: covertusername967@gmail.com Received: by 2002:a4a:e9ef:0:0:0:0:0 with SMTP id w15csp1904308ooc; Fri, 16 Oct 2020 17:28:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAbm2rAEqVLEREtUJ1ARSW/TEVIMUVHtiIjgNOrQ8+vgfxNU3CMJQUPRiJYwrHf02/SxYn X-Received: by 2002:a62:8497:0:b029:155:9366:381b with SMTP id k145-20020a6284970000b02901559366381bmr6388594pfd.15.1602894491151; Fri, 16 Oct 2020 17:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602894491; cv=none; d=google.com; s=arc-20160816; b=IOLkALt+nJZmb5/z6RFurqzmmRMan/ebmqfRuS7oDAAafySA/EGdqW2jkvEJ8oWTp3 2LifPX9MmwE461YnRn9hSioPTAEXZllYlutvRhz0lhHRleDgcF7orMxrY8Ji30/AVZKG i12TK3vqF1nIYReJN6EI5GPeu81ETHFy05rFvD7Ew/aIlvpvXBVrcX7ZfsqJTwMklxiH VnOlu9+2FgmZm19RdOO3K412dOWCmpxMs0AJxDj9KIQyvQ5HMlzPoQC5kKhrNIsQMUvF dmue+v/Gm7Bb8bOIa8CLUkkpkth3UFTuX0+lNyXifdaMOu/f63ZJoAvBtJaBZM/sDreT ci5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=precedence:reply-to:subject:list-help:list-id :content-transfer-encoding:mime-version:in-reply-to:to:date:from :message-id; bh=Rcn+af82XFydjgw18XVx7rA4ixlpWyNPx3WaIWdeywo=; b=rZtDkgQKKrc0NlTTt6vwEJVRt9p5XTz56T8SekVT1dgTcLab+Ty2H07A32W+s0+h/e AGGuWUWOVzl153CAs1PMD8wb3Ft49FkLdlDSxnrREMxVfO8LeCjJQ8+aOdm9PkJ9KRBc LrSNOQxTLv5c6fKYDtGh0JkHYJHNPkjjQqjyLsyz5XGwzx0HAcaczWcL0I6GLoCUUAtj AKsoXIlTMePLQN1DY2je2tuDtyHUfcwD1x1z+wR+NuI8CParlbAw7oHsgPAochRF71AP ZndVsGOtrnjSE1SOTa+Aju70Sss1OfPEn4PEDPs4k/6RBS0/fHvWH//ptx8ERECrRdAX 5WmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of 9front-bounces@ewsd.inri.net designates 107.191.116.128 as permitted sender) smtp.mailfrom=9front-bounces@ewsd.inri.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=musolino.id.au Return-Path: <9front-bounces@ewsd.inri.net> Received: from ewsd.inri.net (ewsd.inri.net. [107.191.116.128]) by mx.google.com with ESMTP id c12si3758917plz.56.2020.10.16.17.28.07; Fri, 16 Oct 2020 17:28:11 -0700 (PDT) Received-SPF: pass (google.com: domain of 9front-bounces@ewsd.inri.net designates 107.191.116.128 as permitted sender) client-ip=107.191.116.128; Authentication-Results: mx.google.com; spf=pass (google.com: domain of 9front-bounces@ewsd.inri.net designates 107.191.116.128 as permitted sender) smtp.mailfrom=9front-bounces@ewsd.inri.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=musolino.id.au Received: from vultr.musolino.id.au ([45.76.123.158]) by ewsd; Fri Oct 16 20:27:04 -0400 2020 Received: from 58.170.166.237 ([58.170.166.237]) by vultr; Sat Oct 17 00:26:42 +0000 2020 Message-ID: <290B9ACF9C13F61A73FEB935403A46E7@musolino.id.au> From: Alex Musolino Date: Sat, 17 Oct 2020 10:56:40 +1030 To: 9front@9front.org In-Reply-To: <4EDC5C64B03145DA8A66C77F737FA4A1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: object-oriented extensible table WEB2.0 cache polling-aware framework Subject: Re: [9front] make faces generic Reply-To: 9front@9front.org Precedence: bulk I like my faces(1) with -i. Maybe it would be better just write a new program? --upas-oawvavljtkqjvttqeedilhzevs--