2016-07-26 15:54:27 +00:00
|
|
|
.Dd July 26, 2016
|
|
|
|
.Dt MDELIVER 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mdeliver
|
2018-01-31 23:45:13 +00:00
|
|
|
.Nd deliver messages or import mbox file
|
2016-07-26 15:54:27 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2016-08-19 14:59:19 +00:00
|
|
|
.Op Fl c
|
2016-07-26 15:54:27 +00:00
|
|
|
.Op Fl v
|
|
|
|
.Op Fl X Ar flags
|
|
|
|
.Ar dir
|
|
|
|
<
|
|
|
|
.Ar message
|
|
|
|
.Nm
|
|
|
|
.Fl M
|
2016-08-19 14:59:19 +00:00
|
|
|
.Op Fl c
|
2016-07-26 15:54:27 +00:00
|
|
|
.Op Fl v
|
|
|
|
.Op Fl X Ar flags
|
|
|
|
.Ar dir
|
|
|
|
<
|
|
|
|
.Ar mbox
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2018-01-31 23:45:13 +00:00
|
|
|
adds a message given on the standard input
|
|
|
|
as a new message in the maildir
|
2016-07-26 15:54:27 +00:00
|
|
|
.Ar dir .
|
|
|
|
.Pp
|
|
|
|
When
|
|
|
|
.Fl M
|
|
|
|
is used,
|
|
|
|
.Nm
|
2018-01-31 23:45:13 +00:00
|
|
|
will regard the standard input as
|
2017-07-01 11:10:14 +00:00
|
|
|
an MBOXRD mailbox, split it on
|
2016-07-26 15:54:27 +00:00
|
|
|
.Dq Li "From "
|
|
|
|
and deliver each message,
|
|
|
|
decoding it according to the MBOXRD convention.
|
|
|
|
.Nm
|
|
|
|
will set the mtime according to the value of
|
2017-08-20 15:11:22 +00:00
|
|
|
.Sq Li Date\&:
|
2018-01-31 23:45:13 +00:00
|
|
|
and the maildir flags according to the value of
|
2017-08-20 15:11:22 +00:00
|
|
|
.Sq Li Status\&:
|
2016-07-26 15:54:27 +00:00
|
|
|
or
|
2017-08-20 15:11:22 +00:00
|
|
|
.Sq Li X-Status\&: .
|
2016-07-26 15:54:27 +00:00
|
|
|
.Pp
|
2018-01-31 23:45:13 +00:00
|
|
|
The messages are delivered in a reliable way and use the default
|
2016-07-26 15:54:27 +00:00
|
|
|
.Xr umask 2 .
|
|
|
|
.Pp
|
2017-07-01 11:10:14 +00:00
|
|
|
Please note that no syntactical checks are performed
|
|
|
|
on the messages.
|
2016-07-26 15:54:27 +00:00
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl M
|
|
|
|
Deliver each message of an mbox.
|
2016-08-19 14:59:19 +00:00
|
|
|
.It Fl c
|
2016-07-26 15:54:27 +00:00
|
|
|
Deliver messages into
|
2016-08-19 14:59:19 +00:00
|
|
|
.Pa cur/ ,
|
2016-07-26 15:54:27 +00:00
|
|
|
not
|
2016-08-19 14:59:19 +00:00
|
|
|
.Pa new/
|
2016-07-26 15:54:27 +00:00
|
|
|
(the default).
|
|
|
|
.It Fl v
|
2018-01-31 23:45:13 +00:00
|
|
|
Print each new message filename after delivery.
|
2016-07-26 15:54:27 +00:00
|
|
|
.It Fl X Ar flg
|
2017-07-01 11:10:14 +00:00
|
|
|
Override the flags of the new message file to be
|
2016-07-26 15:54:27 +00:00
|
|
|
.Ar flg .
|
|
|
|
.El
|
|
|
|
.Sh EXIT STATUS
|
|
|
|
.Ex -std
|
|
|
|
.Sh SEE ALSO
|
2016-08-19 15:53:40 +00:00
|
|
|
.Xr mexport 1 ,
|
2019-01-27 21:18:22 +00:00
|
|
|
.Xr mrefile 1 ,
|
2016-07-26 15:54:27 +00:00
|
|
|
.Xr maildir 5 ,
|
|
|
|
.Xr mbox 5
|
|
|
|
.Pp
|
|
|
|
.Lk http://www.digitalpreservation.gov/formats/fdd/fdd000385.shtml "MBOXRD Email Format"
|
2016-08-01 15:18:36 +00:00
|
|
|
.Pp
|
|
|
|
.Lk https://cr.yp.to/proto/maildir.html "Using maildir format"
|
2016-07-26 15:54:27 +00:00
|
|
|
.Sh AUTHORS
|
2017-01-21 16:17:12 +00:00
|
|
|
.An Leah Neukirchen Aq Mt leah@vuxu.org
|
2016-07-26 15:54:27 +00:00
|
|
|
.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/
|