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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham 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 28D7529EAC for ; Wed, 7 Feb 2024 13:28:21 +0100 (CET) Received: from chrisfroeschl.de ([185.183.157.17]) by 9front; Wed Feb 7 07:25:28 -0500 2024 Message-ID: <512EC0AE6DCEC16B8AAFA98C44F63F97@chrisfroeschl.de> Date: Wed, 07 Feb 2024 13:25:08 +0100 From: chris@chrisfroeschl.de To: 9front@9front.org In-Reply-To: <35021F35F2A8388B5B89EFCFCBD82F9A@prosimetrum.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: template DOM enhancement-scale full-stack-oriented shader Subject: Re: [9front] [PATCH] nedmail: only display most useful headers Reply-To: 9front@9front.org Precedence: bulk > a real hero would attach a diff to this mail Heroes use nedmail(1)! The ignore part is now located in upasfs(4) since it is implemented there and not in nedmail. I added all nedmail commands I am aware of, although I don't use some. diff 7155de5d97ffa0d7cc91e6cce8307db64490da3b uncommitted --- a//sys/man/1/nedmail +++ b//sys/man/1/nedmail @@ -164,16 +164,25 @@ .I sendername is the account name of the sender. .TP +.B H +Print the MIME structure of the message. +.TP .B h Print the disposition, size in characters, reception time, sender, and subject of the message. .TP -.B H -Print the MIME structure of the message. -.TP .B help Print a summary of the commands. .TP +.B i +Incorporate new mail. +.TP +.BI k " [flags] +Mark mail. See upasfs(4) for available flags. +.TP +.BI K " [flags] +Unmark mail. +.TP .BI m " person ... Forward the message as a mime attachment to the named .IR persons . @@ -184,10 +193,29 @@ but allow the user to type in text to be included with the forwarded message. .TP +.BI mb " mbox +Switch mailbox to mbox located at /mail/box/username/mbox . +.TP .B p Print message. An interrupt stops the printing. .TP +.B P +Print the raw message including hidden headers as filtered by /mail/lib/ignore (see upasfs(4)). +.TP +.B \&" +Print a quoted version of msg. +.TP +.B \&"\&" +Format and quote message. +.TP +.B q +Put undeleted mail back in the mailbox and stop. +.TP +EOT (control-D) +Same as +.BR q . +.TP .BI r " args Reply to the sender of the message. .I Marshal @@ -228,7 +256,7 @@ doesn't start with a `/', it is interpreted relative to the directory in which the mailbox resides. If .I mfile -is a directory then the destination is a file in that directry. +is a directory then the destination is a file in that directory. If the MIME header specifies a file name, that one is used. Otherwise, one is generated using .IR mktemp (2) @@ -235,22 +263,15 @@ and the string .BR att.XXXXXXXXXXX . .TP -.B q -Put undeleted mail back in the mailbox and stop. +.B t +Text formatter. .TP -EOT (control-D) -Same as -.BR q . -.TP -.BI w " file -Same as -.B s -with the mail header line(s) stripped. This can be used to -save binary mail bodies. -.TP .B u Remove mark for deletion. .TP +.BI w " file +Store message contents as file. +.TP .B x Exit, without changing the mailbox file. .TP @@ -326,6 +347,9 @@ .TP .B /mail/box/*/L.mbox mutual exclusion lock for altering mbox +.TP +.B /mail/lib/ignore +header filter regarding 'p' c .SH SOURCE .B /sys/src/cmd/upas/ned .SH "SEE ALSO" --- a//sys/man/4/upasfs +++ b//sys/man/4/upasfs @@ -459,6 +459,12 @@ .TP .B /mail/box/*/L.mbox mutual exclusion lock for altering mbox (mbox format only) +.TP +.B /mail/lib/ignore +Headers to ignore on regular display. +.TP +.B /mail/lib/blocked +Addresses to refuse to accept messages from. .SH SOURCE .TP .B /sys/src/cmd/upas/fs