about summary refs log tree commit diff
path: root/man
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-19 17:53:40 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-19 17:53:40 +0200
commitd71a1fbe44093debc05d60d56ac26ef2c63aff15 (patch)
treed47de20fc684d2a686ca0429d5b5ffbdac2b7a5f /man
parent7c9a5c9c7682c1e5a1189b410a63403c3676d5c5 (diff)
downloadmblaze-d71a1fbe44093debc05d60d56ac26ef2c63aff15.tar.gz
mblaze-d71a1fbe44093debc05d60d56ac26ef2c63aff15.tar.xz
mblaze-d71a1fbe44093debc05d60d56ac26ef2c63aff15.zip
add mexport
Diffstat (limited to 'man')
-rw-r--r--man/mblaze.72
-rw-r--r--man/mdeliver.11
-rw-r--r--man/mexport.166
3 files changed, 69 insertions, 0 deletions
diff --git a/man/mblaze.7 b/man/mblaze.7
index 6e30c6b..f87691a 100644
--- a/man/mblaze.7
+++ b/man/mblaze.7
@@ -26,6 +26,8 @@ to write and send mail
 to deliver messages or import mailboxes
 .It Xr mdirs 1
 to find Maildirs
+.It Xr mexport 1
+to export mailboxes
 .It Xr mflag 1
 to change flags (marks) of mail
 .It Xr mgenmid 1
diff --git a/man/mdeliver.1 b/man/mdeliver.1
index 11ac172..0f48536 100644
--- a/man/mdeliver.1
+++ b/man/mdeliver.1
@@ -70,6 +70,7 @@ the flags of the new message file to be
 .Sh EXIT STATUS
 .Ex -std
 .Sh SEE ALSO
+.Xr mexport 1 ,
 .Xr maildir 5 ,
 .Xr mbox 5
 .Pp
diff --git a/man/mexport.1 b/man/mexport.1
new file mode 100644
index 0000000..9b0f5ee
--- /dev/null
+++ b/man/mexport.1
@@ -0,0 +1,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 Christian Neukirchen Aq Mt chneukirchen@gmail.com
+.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/