Python में नया PST बनाएं
Contents
[
Hide
]
Aspose.Email - नया PST बनाना
नए PST को बनाने के लिए Aspose.Email Java for Python का उपयोग करें। निम्न कोड का उपयोग करें।
Python कोड
\# Create an instance of PersonalStorage
personalStorage = self.PersonalStorage
pst = personalStorage.create(self.dataDir + "sample1.pst", 0)
\# Create a folder at root of pst
pst.getRootFolder().addSubFolder("myInbox")
\# Add message to newly created folder
mapi_message = self.MapiMessage
pst.getRootFolder().getSubFolder("myInbox").addMessage(mapi_message.fromFile(self.dataDir + "Message.msg"))
print "Created PST successfully."
चल रहा कोड डाउनलोड करें
नीचे उल्लेखित किसी भी सामाजिक कोडिंग साइट से Create New PST (Aspose.Email) डाउनलोड करें: