summary refs log tree commit diff
path: root/man/mexport.1
blob: edc13feaae0a91ac64964641bfe8fb79a8c02347 (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
.Dd August 19, 2016
.Dt MEXPORT 1
.Os
.Sh NAME
.Nm mexport
.Nd export messages as mbox file
.Sh SYNOPSIS
.Nm
.Op Fl S
.Ar msgs\ ...
.Sh DESCRIPTION
.Nm
exports the given messages as a MBOXRD file to standard output.
See
.Xr mmsg 7
for the message argument syntax.
.Pp
If no
.Ar msgs
are passed,
.Nm
reads file names from standard input,
or uses the mails in the current sequence when used interactively.
.Pp
.Nm
uses the
.Sq Li "Return-Path:"
(or
.Sq Li "X-Envelope-To:" )
and the
.Sq Li "Date:"
from the message for the
.Sq Li "From "
line.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl S
Add
.Sq Li "Status:"
and
.Sq Li "X-Status:"
headers according to the Maildir flags.
.El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr mdeliver 1 ,
.Xr maildir 5 ,
.Xr mbox 5
.Pp
.Lk http://www.digitalpreservation.gov/formats/fdd/fdd000385.shtml "MBOXRD Email Format"
.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/