about summary refs log tree commit diff
path: root/man/mflag.1
blob: 0450e233c2e643d21631eff36ddfe97eaff1a0a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
.Dd July 22, 2016
.Dt MFLAG 1
.Os
.Sh NAME
.Nm mflag
.Nd manipulate Maildir mail flags
.Sh SYNOPSIS
.Nm
.Op Fl DFPRST
.Op Fl X Ar str
.br
.Op Fl dfprst
.Op Fl x Ar str
.br
.Op Fl v
.Op Ar msgs\ ...
.Sh DESCRIPTION
.Nm
changes the flags of the specified Maildir
.Ar msgs
according to the options supplied.
See
.Xr mmsg 7
for the message argument syntax.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl D
Mark
.Ar msgs
as draft.
.It Fl F
Mark
.Ar msgs
as flagged.
.It Fl P
Mark
.Ar msgs
as passed (resent/forwarded/bounced).
.It Fl R
Mark
.Ar msgs
as replied.
.It Fl S
Mark
.Ar msgs
as seen.
.It Fl T
Mark
.Ar msgs
as trashed.
.It Fl X Ar str
Mark
.Ar msgs
with the characters in
.Ar str .
.It Fl d
Unmark
.Ar msgs
as draft.
.It Fl f
Unmark
.Ar msgs
as flagged.
.It Fl p
Unmark
.Ar msgs
as passed (resent/forwarded/bounced).
.It Fl r
Unmark
.Ar msgs
as replied.
.It Fl s
Unmark
.Ar msgs
as seen.
.It Fl t
Unmark
.Ar msgs
as trashed.
.It Fl x Ar str
Unmark
.Ar msgs
with the characters in
.Ar str .
(Remember to use uppercase characters.)
.It Fl v
Read Maildir mails from the standard input
(or use the whole current sequence, if used interactively)
and print the transformed list of filenames.
.Pp
This can be used to keep the sequence intact in the case of renames.
.El
.Pp
Note that the link to
.Pa ${MBLAZE:-$HOME/.mblaze}/cur
is updated in all cases, when affected.
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr mmsg 7
.Pp
.Lk https://cr.yp.to/proto/maildir.html "Using maildir format"
.Sh AUTHORS
.An Leah Neukirchen Aq Mt leah@vuxu.org
.Sh LICENSE
.Nm
is in the public domain.
.Pp
To the extent possible under law,
the creator of this work
has waived all copyright and related or
neighboring rights to this work.
.Pp
.Lk http://creativecommons.org/publicdomain/zero/1.0/