From: chris@chrisfroeschl.de
To: 9front@9front.org
Subject: Re: [9front] [PATCH] nedmail: only display most useful headers
Date: Wed, 07 Feb 2024 13:25:08 +0100 [thread overview]
Message-ID: <512EC0AE6DCEC16B8AAFA98C44F63F97@chrisfroeschl.de> (raw)
In-Reply-To: <35021F35F2A8388B5B89EFCFCBD82F9A@prosimetrum.com>
> 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
next prev parent reply other threads:[~2024-02-07 12:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-06 14:41 phil9
2024-02-06 17:14 ` umbraticus
2024-02-06 17:17 ` ori
2024-02-06 17:38 ` phil9
2024-02-07 4:23 ` umbraticus
2024-02-07 6:06 ` phil9
2024-02-07 6:54 ` chris
2024-02-07 9:03 ` umbraticus
2024-02-07 12:25 ` chris [this message]
2024-02-07 17:37 ` umbraticus
2024-02-06 18:07 ` unobe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=512EC0AE6DCEC16B8AAFA98C44F63F97@chrisfroeschl.de \
--to=chris@chrisfroeschl.de \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).