Which is best tool for Converting .eml files into MBOX format?

I have to convert my 5000 .eml files into MBOX format. I have searched many tools for converting it but they are not converting my all .eml files into MBOX format there are not only 5000 but they are lot more if I will use that tool then they will take a lot of time to convert. If anyone can know about to convert lots of EML files at once then tell me soon, please.

Thanks,
John Carlos

@johncarlos,

Thank you for contacting Aspose Support.

Please use the code snippet given below to add EML files to MBOX format.

MboxrdStorageWriter mbox = new MboxrdStorageWriter(MBOX_File_Path, true);
string[] files = Directory.GetFiles(EML_Files_Directory_Path;
foreach (string file in files)
{
    MailMessage mailMessage= MailMessage.Load(file);
    mbox.WriteMessage(mailMessage);
}
mbox.Dispose();

Please test the code given above using the latest version of Aspose.Email for .NET API. Please feel free to contact us if additional information is required.