+ ifile.close()
+
+ def fetchContactsInfo(self):
+ abook=address_book()
+ abook.populateNames(self.recvLst, self.sentLst)
+
+ def hasImportedSent(self):
+ return os.path.isfile (self.pathToSent)
+
+
+ def hasImportedInbox(self):
+ return os.path.isfile (self.pathToInbox)
+
+
+ def importSent(self, path):
+ try:
+ #if hasImportedSent:
+ # os.system("rm "+self.pathToSent)
+
+ os.system("cp "+str(path).replace(" ", "\ ")+ " "+self.pathToSent)
+ self.fetchSent()
+ return True
+ except:
+ return False
+
+ def importInbox(self, path):
+ try:
+ #if hasImportedInbox:
+ # os.system("rm "+self.pathToInbox)
+
+ os.system("cp "+str(path).replace(" ", "\ ")+ " "+self.pathToInbox)
+ self.fetchInbox()
+ return True
+ except:
+ return False
+