| Author |  | 
      
        | Ayumiesan Newbie
 
  
 
 Joined: 03 March 2016
 Online Status: Offline
 Posts: 11
 | 
          Hi,
           | Posted: 15 April 2016 at 6:23am | IP Logged |   |  
           | 
 |  
 I try to add a flag to a message by using :
 $oApiMailManager = CApi::Manager('mail');
 $oApiMailManager->setMessageFlag(....);
 
 Everything work on Orange or Gmail adress but it doesn't work on Outlook and Yahoo address, Here my logs :
 
 Connection Ok
 Login Ok
 IMAP[SECURE]: > TAG1 LOGIN "geoffrey.chameroy@yahoo.fr" "********"\r\n
 IMAP[DATA]: < TAG1 OK AUTHENTICATE completed - Mailbox size in bytes is 192368006\r\n
 IMAP[DATA]: > TAG2 SELECT "INBOX"\r\n
 IMAP[DATA]: < * 201 EXISTS\r\n
 IMAP[DATA]: < * 0 RECENT\r\n
 IMAP[DATA]: < * OK [UIDVALIDITY 1280660854] UIDs valid\r\n
 IMAP[DATA]: < * OK [UIDNEXT 19954] Predicted next UID\r\n
 IMAP[DATA]: < * FLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded $Junk $NotJunk)\r\n
 IMAP[DATA]: < * OK [PERMANENTFLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded $Junk $NotJunk)] Permanent flags\r\n
 IMAP[DATA]: < * OK [HIGHESTMODSEQ 264]\r\n
 IMAP[DATA]: < TAG2 OK [READ-WRITE] SELECT completed; now in selected state\r\n
 IMAP[DATA]: > TAG3 UID STORE 19860 +FLAGS.SILENT (dossier_64)\r\n
 IMAP[DATA]: < TAG3 BAD [CLIENTBUG] UID STORE Command arguments invalid\r\n
 
 Here i try to add the tag "dossier_64" to my message 19860 and i get that response, i don't understand why the arguments are invalid while this work on Orange and Gmail adress
 
 Regards,
 Delphine Achini
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          As you can see from the log extract, the server returns the list of supported flags after authentication. And there is no such flag name as "*". It means server doesn't support custom flags.  You can't add "dossier_64" as flag to message.
           | Posted: 15 April 2016 at 7:50am | IP Logged |   |  
           | 
 |  
 Looks like Orange and Gmail mail servers support custom flags and have "*" in the list of supported flags.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Ayumiesan Newbie
 
  
 
 Joined: 03 March 2016
 Online Status: Offline
 Posts: 11
 | 
          Hi, thanks for your response,
           | Posted: 15 April 2016 at 7:55am | IP Logged |   |  
           | 
 |  
 I try to make some message award Like have the possibility to choose a specific message and link him to a contact, is that possible to do that without put flag ?
 
 Regards,
 Delphine
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          The only other option there is to modify a message and set specific header, but due to the nature of how IMAP works, that's much more complex thing to do: you would need to load message from server, modify its content by adding a header, upload the new version of the message and delete the existing one.
           | Posted: 15 April 2016 at 7:58am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |