The attachment relative path, e.g. folder/file.docx, or the filename when the file is located in the root of an archive, in an e‑mail message, or a data file.
fromgroupdocs.viewerimportViewerwithViewer("with_attachments.msg")asviewer:forattachmentinviewer.get_attachments():# Access attachment properties, e.g., file nameprint(attachment.file_name)# Save the attachment to a file pathviewer.save_attachment(attachment,f"./out/{attachment.file_name}")