9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] [PATCH] nedmail(1): add plenty of missing commands + (theoretical) flag descriptions
@ 2022-09-17 13:37 Chris A. Fröschl
  2022-09-17 13:46 ` Stanley Lieber
  0 siblings, 1 reply; 5+ messages in thread
From: Chris A. Fröschl @ 2022-09-17 13:37 UTC (permalink / raw)
  To: 9front

Theoretical flag description was taken from
/sys/src/cmd/upas/common/common.h:13,21 . "Theoretical" because
nedmail doesn't seem to really work with most of them or use them in
other ways.  Feel free to adjust if you know more.

---
diff 05b08f6665b8b0c14c0cb4caa42929db8d26c6c9 ef0ab109af2852d0f35318f6476f3d37860cc568
--- a/sys/man/1/nedmail
+++ b/sys/man/1/nedmail
@@ -157,6 +157,9 @@
 Mark message to be deleted upon exiting
 .IR nedmail .
 .TP
+.BI F " [+-][aDdfrSs]
+Set message flags.
+.TP
 .B f
 Append the message to the file 
 .BI /mail/box/ username / sendername
@@ -164,6 +167,9 @@
 .I sendername
 is the account name of the sender.
 .TP
+.B fq
+Print mailbox f appends.
+.TP
 .B h
 Print the disposition, size in characters, reception time, sender,
 and subject of the message.
@@ -174,6 +180,16 @@
 .B help
 Print a summary of the commands.
 .TP
+.B i
+Incorporate new mail.
+.TP
+.BI k " [flags]
+Mark mail.
+.TP
+.BI K " [flags]
+Unmark mail.
+.BI 
+.TP
 .BI m " person ...
 Forward the message as a mime attachment to the named
 .IR persons .
@@ -184,10 +200,22 @@
 but allow the user to type in text to be included
 with the forwarded message.
 .TP
+.BI mb " mbox"
+Switch mailboxes.
+.TP
 .B p
 Print message.
 An interrupt stops the printing.
 .TP
+.B P
+Print the raw message.
+.TP
+.B """
+Print a quoted version of msg
+.TP
+.B """"""
+Format and quote msg.
+.TP
 .BI r " args
 Reply to the sender of the message.
 .I Marshal
@@ -203,7 +231,7 @@
 .B r
 but with the original message included as an attachment.
 .TP
-.B rf
+.BI rf " args 
 Like
 .B r
 but append the message and the reply to the file 
@@ -212,7 +240,7 @@
 .I sendername
 is the account name of the sender.
 .TP
-.B Rf
+.B Rf " args
 Like 
 .B R
 but append the message and the reply to the file 
@@ -235,6 +263,9 @@
 and the string
 .BR att.XXXXXXXXXXX .
 .TP
+.B t
+Print text formatter.
+.TP
 .B q
 Put undeleted mail back in the mailbox and stop.
 .TP
@@ -275,6 +306,31 @@
 .TP
 .B \&=
 Print the number of the current message.
+.PD
+.PP
+The flags are:
+.TP
+.B a
+Answered
+.PD 0
+.TP
+.B D
+Deleted
+.TP
+.B d
+Draft
+.TP
+.B f
+Flagged
+.TP
+.B r
+Recent
+.TP
+.B S
+Stored
+.TP
+.B s
+Seen
 .PD
 .PP
 Here's an example of a mail session that looks at a summary


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] [PATCH] nedmail(1): add plenty of missing commands + (theoretical) flag descriptions
  2022-09-17 13:37 [9front] [PATCH] nedmail(1): add plenty of missing commands + (theoretical) flag descriptions Chris A. Fröschl
@ 2022-09-17 13:46 ` Stanley Lieber
  2022-09-17 13:50   ` chris
  2022-09-17 14:01   ` chris
  0 siblings, 2 replies; 5+ messages in thread
From: Stanley Lieber @ 2022-09-17 13:46 UTC (permalink / raw)
  To: 9front

should we document flags that don’t work?

sl

> On Sep 17, 2022, at 9:41 AM, Chris A. Fröschl <chris@chrisfroeschl.de> wrote:
> 
> Theoretical flag description was taken from
> /sys/src/cmd/upas/common/common.h:13,21 . "Theoretical" because
> nedmail doesn't seem to really work with most of them or use them in
> other ways.  Feel free to adjust if you know more.
> 
> ---
> diff 05b08f6665b8b0c14c0cb4caa42929db8d26c6c9 ef0ab109af2852d0f35318f6476f3d37860cc568
> --- a/sys/man/1/nedmail
> +++ b/sys/man/1/nedmail
> @@ -157,6 +157,9 @@
> Mark message to be deleted upon exiting
> .IR nedmail .
> .TP
> +.BI F " [+-][aDdfrSs]
> +Set message flags.
> +.TP
> .B f
> Append the message to the file 
> .BI /mail/box/ username / sendername
> @@ -164,6 +167,9 @@
> .I sendername
> is the account name of the sender.
> .TP
> +.B fq
> +Print mailbox f appends.
> +.TP
> .B h
> Print the disposition, size in characters, reception time, sender,
> and subject of the message.
> @@ -174,6 +180,16 @@
> .B help
> Print a summary of the commands.
> .TP
> +.B i
> +Incorporate new mail.
> +.TP
> +.BI k " [flags]
> +Mark mail.
> +.TP
> +.BI K " [flags]
> +Unmark mail.
> +.BI 
> +.TP
> .BI m " person ...
> Forward the message as a mime attachment to the named
> .IR persons .
> @@ -184,10 +200,22 @@
> but allow the user to type in text to be included
> with the forwarded message.
> .TP
> +.BI mb " mbox"
> +Switch mailboxes.
> +.TP
> .B p
> Print message.
> An interrupt stops the printing.
> .TP
> +.B P
> +Print the raw message.
> +.TP
> +.B """
> +Print a quoted version of msg
> +.TP
> +.B """"""
> +Format and quote msg.
> +.TP
> .BI r " args
> Reply to the sender of the message.
> .I Marshal
> @@ -203,7 +231,7 @@
> .B r
> but with the original message included as an attachment.
> .TP
> -.B rf
> +.BI rf " args 
> Like
> .B r
> but append the message and the reply to the file 
> @@ -212,7 +240,7 @@
> .I sendername
> is the account name of the sender.
> .TP
> -.B Rf
> +.B Rf " args
> Like 
> .B R
> but append the message and the reply to the file 
> @@ -235,6 +263,9 @@
> and the string
> .BR att.XXXXXXXXXXX .
> .TP
> +.B t
> +Print text formatter.
> +.TP
> .B q
> Put undeleted mail back in the mailbox and stop.
> .TP
> @@ -275,6 +306,31 @@
> .TP
> .B \&=
> Print the number of the current message.
> +.PD
> +.PP
> +The flags are:
> +.TP
> +.B a
> +Answered
> +.PD 0
> +.TP
> +.B D
> +Deleted
> +.TP
> +.B d
> +Draft
> +.TP
> +.B f
> +Flagged
> +.TP
> +.B r
> +Recent
> +.TP
> +.B S
> +Stored
> +.TP
> +.B s
> +Seen
> .PD
> .PP
> Here's an example of a mail session that looks at a summary
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] [PATCH] nedmail(1): add plenty of missing commands + (theoretical) flag descriptions
  2022-09-17 13:46 ` Stanley Lieber
@ 2022-09-17 13:50   ` chris
  2022-09-17 14:01   ` chris
  1 sibling, 0 replies; 5+ messages in thread
From: chris @ 2022-09-17 13:50 UTC (permalink / raw)
  To: 9front

> should we document flags that don’t work?

they exist partly in the 'help' cmd from nedmail and are
part of the common upas src.

I just intended to give them any meaning since I was always
wondering what they mean. Otherwise I could perhaps adjust
some nedmail code to not mention stuff that doesn't work or
exists atm.

chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] [PATCH] nedmail(1): add plenty of missing commands + (theoretical) flag descriptions
  2022-09-17 13:46 ` Stanley Lieber
  2022-09-17 13:50   ` chris
@ 2022-09-17 14:01   ` chris
  2022-09-19  6:37     ` chris
  1 sibling, 1 reply; 5+ messages in thread
From: chris @ 2022-09-17 14:01 UTC (permalink / raw)
  To: 9front

And some flags ('d' for delete and 's' for stored)
seem to work from my experience.

But they are weirdly enough not matching the
/sys/src/cmd/upas/common/common.h:13,21 spec.
(D is deleted, while d is draft etc.)

Nothing of major importance I guess. Feel free
to just leave the flag information away. I mainly
care about the missing commands.

chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9front] [PATCH] nedmail(1): add plenty of missing commands + (theoretical) flag descriptions
  2022-09-17 14:01   ` chris
@ 2022-09-19  6:37     ` chris
  0 siblings, 0 replies; 5+ messages in thread
From: chris @ 2022-09-19  6:37 UTC (permalink / raw)
  To: 9front

I adjusted the descriptions to point to upasfs(4) if appropiate.
Flags from upasfs are already described there.

The new flag section is specific to nedmail and should cover
everything that works atm. If you know more, feel free to append.

---
diff 13996f7f38601ab82bfe16c7dec0e2d618fe11b1 a9239bbf4dd083a399285cda33c335aa63b97b57
--- a/sys/man/1/nedmail
+++ b/sys/man/1/nedmail
@@ -157,6 +157,9 @@
 Mark message to be deleted upon exiting
 .IR nedmail .
 .TP
+.BI F " [+-][aDdfrSs]
+Add/remove message flags as implemented by upasfs(4) .
+.TP
 .B f
 Append the message to the file 
 .BI /mail/box/ username / sendername
@@ -164,6 +167,9 @@
 .I sendername
 is the account name of the sender.
 .TP
+.B fq
+Print mailbox f appends.
+.TP
 .B h
 Print the disposition, size in characters, reception time, sender,
 and subject of the message.
@@ -174,6 +180,16 @@
 .B help
 Print a summary of the commands.
 .TP
+.B i
+Incorporate new mail.
+.TP
+.BI k " [flags]
+Mark mail with flags as implemented by upasfs(4) .
+.TP
+.BI K " [flags]
+Unmark mail with flags as implemented by upasfs(4) .
+.BI 
+.TP
 .BI m " person ...
 Forward the message as a mime attachment to the named
 .IR persons .
@@ -184,10 +200,22 @@
 but allow the user to type in text to be included
 with the forwarded message.
 .TP
+.BI mb " mbox"
+Switch mailboxes.
+.TP
 .B p
 Print message.
 An interrupt stops the printing.
 .TP
+.B P
+Print the raw message.
+.TP
+.B \&"
+Print a quoted version of msg
+.TP
+.B \&"\&"
+Format and quote msg.
+.TP
 .BI r " args
 Reply to the sender of the message.
 .I Marshal
@@ -203,7 +231,7 @@
 .B r
 but with the original message included as an attachment.
 .TP
-.B rf
+.BI rf " args 
 Like
 .B r
 but append the message and the reply to the file 
@@ -212,7 +240,7 @@
 .I sendername
 is the account name of the sender.
 .TP
-.B Rf
+.B Rf " args
 Like 
 .B R
 but append the message and the reply to the file 
@@ -235,6 +263,9 @@
 and the string
 .BR att.XXXXXXXXXXX .
 .TP
+.B t
+Print text formatter.
+.TP
 .B q
 Put undeleted mail back in the mailbox and stop.
 .TP
@@ -275,6 +306,25 @@
 .TP
 .B \&=
 Print the number of the current message.
+.PD
+.PP
+Some flags are displayed using the 'h' command. They differ from the flags mentioned in upasfs(4) as follows:
+.TP
+.B a
+Answered
+.PD 0
+.TP
+.B d
+Deleted
+.TP
+.B s
+Stored
+.TP
+.B *
+Unseen
+.TP
+.B "'"
+Flagged
 .PD
 .PP
 Here's an example of a mail session that looks at a summary


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-19  6:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-17 13:37 [9front] [PATCH] nedmail(1): add plenty of missing commands + (theoretical) flag descriptions Chris A. Fröschl
2022-09-17 13:46 ` Stanley Lieber
2022-09-17 13:50   ` chris
2022-09-17 14:01   ` chris
2022-09-19  6:37     ` chris

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).