×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    How delete all entries in IMAP Inbox only on device

    Hello,
    i'm working with 3rd Ed MR.
    Using InternetEmail example from Nokia and Imap4Example from Symbian i was able to create an IMAP email account, retrieve headers from server and populate.
    Now i'd like to implement a delete of all messages in Inbox, but only locally on the phone.

    I've written some code,but it's not working :-/

    Code:
    void CCleanupMailManager::DeleteAllMailsL(void)
    {
    	
    // find mailbox id (iId)
    iId = FindServiceL();
    	
    if(iId == KMsvRootIndexEntryId) {
    	// mailbox not found!
        	User::Leave(KErrNotFound);
    }
    	
    iEntry = iMsvSession->GetEntryL(iId);
    const TMsvEntry& child = (*iEntry)[0];
    iInboxId = child.Id(); // this is the Inbox Id
        	
    iMsvOp = iEntry->DeleteL(iInboxId,iStatus);
        
    SetActive();
    	
    }
    DeleteL returns in RunL() with iStatus==KErrNone, so everything seems ok, but if i open my mailbox via native Messaging app, all messages are still there.
    What i am doing wrong and how can i delete messages only locally on the device and not on the server? i couldn't figure out.

    thank you in advance
    pg
    Last edited by pavarang; 2008-06-15 at 22:26.

Similar Threads

  1. Delete message in the inbox
    By xersmith in forum Symbian Tools & SDKs
    Replies: 8
    Last Post: 2009-09-29, 18:35
  2. Runtime Delete sms from Inbox in Symbian
    By deepakskole2006 in forum Symbian
    Replies: 2
    Last Post: 2006-08-02, 08:33
  3. How to delete file when i unistall my sis from device
    By alokkumarsingh in forum Symbian
    Replies: 8
    Last Post: 2004-06-22, 16:46
  4. Bugs on delete record on RMS for 3650 device
    By dssnokia1 in forum Mobile Java General
    Replies: 6
    Last Post: 2003-09-29, 13:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×