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