Learn R Programming

tm (version 0.3-1)

convertMboxEml: Convert E-Mails From mbox Format To eml Format

Description

Convert e-mails from mbox (i.e., several mails in a single box) format to eml (i.e., every mail in a single file) format.

Usage

convertMboxEml(mbox, EmlDir)

Arguments

mbox
a character or connection describing the mbox location.
EmlDir
a character describing the output directory.

Value

  • No explicit return value. As a side product the directory EmlDir contains the e-mails.

Examples

Run this code
mbox <- system.file("texts", "gmane.comp.lang.r.general.mbox", package = "tm")
convertMboxEml(mbox, "emldir/")
mbox.gz <- gzfile(system.file("texts", "gmane.comp.lang.r.general.mbox.gz", package = "tm"))
convertMboxEml(mbox.gz, "emldir/")

Run the code above in your browser using DataLab