emailservices/emailstore/base_plugin/src/basepluginparts.cpp
changeset 68 83cc6bae1de8
parent 66 084b5b1f02a7
--- a/emailservices/emailstore/base_plugin/src/basepluginparts.cpp	Fri Sep 03 17:52:02 2010 +0300
+++ b/emailservices/emailstore/base_plugin/src/basepluginparts.cpp	Wed Sep 15 12:09:55 2010 +0300
@@ -253,16 +253,21 @@
 
 
 /**
- * The method will leave with KErrNotSupported if the msgstore is encrypted.
+ * The method will leave with KErrNotSupported if the msgstore is encrypted or if trying to open the file for writing.
  */
 EXPORT_C TInt CBasePlugin::GetMessagePartFileL(
     const TFSMailMsgId& aMailBoxId,
     const TFSMailMsgId& /*aParentFolderId*/,
     const TFSMailMsgId& aMessageId,
     const TFSMailMsgId& aMessagePartId,
-    RFile& aFileHandle )
+    RFile& aFileHandle,
+    TBool aForWriting)
 
     {
+    if (aForWriting)
+        {
+        return KErrNotSupported;
+        }
     CMailboxInfo& mailBox = GetMailboxInfoL( aMailBoxId.Id() );
     
     CMsgStoreMessage* msg = mailBox().FetchMessageL( aMessageId.Id(), KMsgStoreInvalidId );