Saving eml without attachments

Hello, I’m currently using messenger.saveAs() function to save .eml files from my emails into a specific folder. However, I would like to know if there is another function that only saves the .eml without any attachment. If there is not such a function, I would be glad to hear a workaround to achieve this.

Thank you very much!