2020-07-03 15:26:48 +00:00
|
|
|
.Dd July 3, 2020
|
2016-07-22 19:43:03 +00:00
|
|
|
.Dt MMSG 7
|
2016-07-22 19:36:46 +00:00
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mmsg
|
2016-08-01 17:33:25 +00:00
|
|
|
.Nd mblaze message argument syntax
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sh DESCRIPTION
|
2017-07-03 21:53:24 +00:00
|
|
|
This document outlines the message syntax used by many
|
2018-02-04 18:26:25 +00:00
|
|
|
of the utilities in the
|
2017-07-03 21:53:24 +00:00
|
|
|
.Xr mblaze 7
|
|
|
|
message system.
|
2016-07-22 19:36:46 +00:00
|
|
|
.Pp
|
2017-07-03 21:53:24 +00:00
|
|
|
In general, you can always specify a filename as a message,
|
2016-07-22 19:36:46 +00:00
|
|
|
if it contains a
|
|
|
|
.Sq Li \&/
|
|
|
|
character.
|
2018-02-04 18:26:25 +00:00
|
|
|
.Po
|
|
|
|
Use
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sq Li \&./
|
2018-02-04 18:26:25 +00:00
|
|
|
to prefix messages in the current directory.
|
|
|
|
.Pc
|
|
|
|
You can also specify a maildir folder, which will be expanded
|
2016-07-25 14:57:23 +00:00
|
|
|
to all messages in the
|
|
|
|
.Pa cur/
|
|
|
|
directory.
|
2016-07-22 19:36:46 +00:00
|
|
|
.Pp
|
2017-10-25 13:41:45 +00:00
|
|
|
Ranges have the format
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Ar start Ns Cm \&: Ns Ar stop ,
|
2016-07-22 19:36:46 +00:00
|
|
|
where
|
|
|
|
.Ar start
|
|
|
|
and
|
|
|
|
.Ar stop
|
|
|
|
are one-based indexes into the sequence.
|
|
|
|
Negative numbers count from the end.
|
|
|
|
If
|
|
|
|
.Ar start
|
|
|
|
is the empty string,
|
|
|
|
.Li 1
|
|
|
|
will be used instead.
|
|
|
|
If
|
|
|
|
.Ar stop
|
|
|
|
is the empty string,
|
|
|
|
.Li \&-1
|
|
|
|
will be used instead.
|
|
|
|
Thus,
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Cm \&:
|
2016-07-22 19:36:46 +00:00
|
|
|
represents the whole sequence.
|
2017-10-25 13:41:45 +00:00
|
|
|
If the range does not contain a
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Cm \&: ,
|
2016-07-22 19:36:46 +00:00
|
|
|
it is considered to be a single message, equivalent to the range
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Ar start Ns Cm \&: Ns Ar start
|
2016-07-22 19:36:46 +00:00
|
|
|
of size one.
|
2017-07-02 16:54:25 +00:00
|
|
|
The special notation
|
|
|
|
.Sq Ar start Ns Cm \&:+ Ns Ar n ,
|
|
|
|
selects
|
|
|
|
.Ar start
|
|
|
|
and the next
|
|
|
|
.Ar n
|
|
|
|
messages.
|
2016-07-22 19:36:46 +00:00
|
|
|
.Pp
|
2016-08-05 18:05:24 +00:00
|
|
|
If the sequence is threaded, the following
|
|
|
|
syntax may be used:
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Ar msg Ns Cm \&=
|
2016-08-05 18:05:24 +00:00
|
|
|
refers to the whole thread that contains
|
|
|
|
.Ar msg .
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Ar msg Ns Cm \&^
|
2016-08-05 18:05:24 +00:00
|
|
|
refers to the parent of the message
|
|
|
|
.Ar msg
|
2017-07-03 21:53:24 +00:00
|
|
|
and may be repeated to refer to grandparents.
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Ar msg Ns Cm \&_
|
2016-08-05 18:05:24 +00:00
|
|
|
refers to the subthread headed by
|
|
|
|
.Ar msg
|
2018-02-04 18:26:25 +00:00
|
|
|
.Po
|
|
|
|
i.e. all messages below
|
|
|
|
.Ar msg ,
|
|
|
|
with more indentation
|
|
|
|
.Pc .
|
2016-08-05 18:05:24 +00:00
|
|
|
.Pp
|
2017-07-03 21:53:24 +00:00
|
|
|
The following special shortcuts may be used:
|
2020-07-03 15:26:48 +00:00
|
|
|
.Bl -tag -width 4n
|
|
|
|
.It Sq Li \&-
|
|
|
|
refers to the message read directly from the standard input.
|
2016-07-22 19:36:46 +00:00
|
|
|
.It Sq Li \&.
|
|
|
|
refers to the current message.
|
|
|
|
Additionally, the syntax
|
|
|
|
.Sq Li \&.+ Ns Ar N
|
|
|
|
and
|
|
|
|
.Sq Li \&.- Ns Ar N
|
|
|
|
can be used to refer to messages relative to the current message.
|
|
|
|
.It Sq Li \&+
|
2018-02-04 18:26:25 +00:00
|
|
|
refers to the next message
|
|
|
|
.Po
|
|
|
|
like
|
|
|
|
.Sq Li \&.+1
|
|
|
|
.Pc
|
2020-07-03 15:26:48 +00:00
|
|
|
.It Sq Li \&.-
|
2018-02-04 18:26:25 +00:00
|
|
|
refers to the previous message
|
|
|
|
.Po
|
|
|
|
like
|
|
|
|
.Sq Li \&.-1
|
|
|
|
.Pc
|
2016-07-22 19:36:46 +00:00
|
|
|
.It Sq Li \&$
|
2018-02-04 18:26:25 +00:00
|
|
|
refers to the last message
|
|
|
|
.Po
|
|
|
|
like
|
|
|
|
.Sq Li -1
|
|
|
|
.Pc
|
2017-07-02 16:54:25 +00:00
|
|
|
.It Sq Li \&^
|
2018-02-04 18:26:25 +00:00
|
|
|
refers to the current parent message
|
|
|
|
.Po
|
|
|
|
like
|
|
|
|
.Sq Li \&.^
|
|
|
|
.Pc
|
2017-07-02 16:54:25 +00:00
|
|
|
.It Sq Li \&=
|
2018-02-04 18:26:25 +00:00
|
|
|
refers to the current thread
|
|
|
|
.Po
|
|
|
|
like
|
|
|
|
.Sq Li \&.=
|
|
|
|
.Pc
|
2017-07-02 16:54:25 +00:00
|
|
|
.It Sq Li \&_
|
2018-02-04 18:26:25 +00:00
|
|
|
refers to the current subthread
|
|
|
|
.Po
|
|
|
|
like
|
|
|
|
.Sq Li \&._
|
|
|
|
.Pc
|
2016-07-22 19:36:46 +00:00
|
|
|
.El
|
2017-07-03 21:53:24 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mblaze 7
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sh AUTHORS
|
2017-01-21 16:17:12 +00:00
|
|
|
.An Leah Neukirchen Aq Mt leah@vuxu.org
|