blob: 40f5a0d98305e843b71ed4fcaeb72c9dff6463f7 (
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
|
.Dd July 26, 2016
.Dt MDELIVER 1
.Os
.Sh NAME
.Nm mdeliver
.Nd deliver message or mailbox into Maildir
.Sh SYNOPSIS
.Nm
.Op Fl c
.Op Fl v
.Op Fl X Ar flags
.Ar dir
<
.Ar message
.Nm
.Fl M
.Op Fl c
.Op Fl v
.Op Fl X Ar flags
.Ar dir
<
.Ar mbox
.Sh DESCRIPTION
.Nm
adds a the message given on standard input as a new message
into the Maildir
.Ar dir .
.Pp
When
.Fl M
is used,
.Nm
will regard standard input as
a MBOXRD mailbox, split it on
.Dq Li "From "
and deliver each message,
decoding it according to the MBOXRD convention.
Also,
.Nm
will set the mtime according to the value of
.Sq Li "Date:"
and the Maildir flags according to the value of
.Sq Li "Status:"
or
.Sq Li "X-Status:" .
.Pp
The messages are delivered in a reliable way and use default
.Xr umask 2 .
.Pp
.Em Beware :
no syntactical checks are performed on the messages.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl M
Deliver each message of an mbox.
.It Fl c
Deliver messages into
.Pa cur/ ,
not
.Pa new/
(the default).
.It Fl v
Print each message filename after delivery.
.It Fl X Ar flg
.Em Override
the flags of the new message file to be
.Ar flg .
.El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr mexport 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/
|