-
Notifications
You must be signed in to change notification settings - Fork 39
/
gromox-eml2mbox.8
42 lines (42 loc) · 1.15 KB
/
gromox-eml2mbox.8
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
.\" SPDX-License-Identifier: CC-BY-SA-4.0 or-later
.\" SPDX-FileCopyrightText: 2022 grommunio GmbH
.TH gromox\-eml2mbox 8 "" "Gromox" "Gromox admin reference"
.SH Name
gromox\-eml2mbox \(em Utility for converting RFC5322 Internet Mail messages
into a RFC4155 mbox-format mailbox
.SH Synopsis
\fBgromox\-eml2mbox\fP [\fIfile\fP...] \fB>\fP\fIout.mbox\fP
.SH Description
gromox\-eml2mbox reads one or more RFC5322-formated e-mail messages and
re-exports them as a Unix mbox to stdout. The purpose is to make messages
openable with command-line MUAs such as Alpine <https://alpineapp.email/>.
.SH Examples
.PP
When \fB\-\fP is given as an argument, standard input is expected to
contain a \fBlist of filenames\fP (i.e. indirection). This can help
when *.eml leads to an expansion the system cannot handle:
.PP
.RS 4
.nf
gromox\-eml2mbox *.eml >all.mbox
.fi
.RE
.PP
May result in a "Argument list too long" error in sh. Remedy for that:
.PP
.RS 4
.nf
find . \-maxdepth 1 \-type f \-name "*.eml" | gromox\-eml2mbox \-
>all.mbox
.fi
.RE
.PP
To convert a single message coming from elsewhere via pipe:
.PP
.RS 4
.nf
stuff | gromox\-exm2eml >1.mbox
.fi
.RE
.SH See also
\fBgromox\fP(7)