通过 Python win32com.client 从 Outlook 保存电子邮件时出错:无法写入文件

Error saving e-mail from outlook via Python win32com.client: Unable to write to file

我正在尝试通过 Python 保存邮件并收到此错误

-2147352567, 'Exception occurred.', (4096, 'Microsoft Outlook', 'Unable to write to file: C:\...\ docs. Right-click the folder containing the file you want to write to, and then select 'Properties' from the menu and check your permissions for this folder.'

帐户拥有文件夹的所有权限和访问权限。

系统驱动器 C:\ 需要管理员权限才能写入。尝试选择另一个驱动器或文件夹。

请出示您的代码。确保您传递的完全限定文件名包括 路径 文件名,而不仅仅是路径或文件名。看起来你只传递了路径 (C:\docs).