| Author |  | 
      
        | Marcelo Newbie
 
  
 
 Joined: 15 November 2013
 Online Status: Offline
 Posts: 7
 | 
          Hi,
           | Posted: 08 June 2023 at 5:50am | IP Logged |   |  
           | 
 |  
 Is there a way to get [READ-ONLY] parameter readed from Select command:
 
 [14:38:25.72] [SEND] MBN00000005 SELECT "posta internet di postapubblica"\r\n
 [14:38:26.83] [RECV] * 453621 EXISTS\r\n [Total 17 bytes received.]
 [14:38:26.83] [RECV] * 4578 RECENT\r\n [Total 15 bytes received.]
 [14:38:26.83] [RECV] * OK [UNSEEN 3] mailbox contains unseen messages\r\n [Total 50 bytes received.]
 [14:38:26.83] [RECV] * OK [UIDVALIDITY 43334] UIDs are valid for this mailbox\r\n [Total 58 bytes received.]
 [14:38:26.83] [RECV] * OK [UIDNEXT 1157945] next expected UID is 1157945\r\n [Total 53 bytes received.]
 [14:38:26.83] [RECV] * FLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded $MDNSent Forwarded $Junk $NotJunk Junk JunkRecorded NonJunk NotJunk Categoriarossa:FLAG15507 WorkspaceConfirmedMeeting:FLAG449366 NFSWorkSpace)\r\n [Total 206 bytes received.]
 [14:38:26.83] [RECV] * OK [PERMANENTFLAGS ()] junk-related flags are not permanent\r\n [Total 63 bytes received.]
 [14:38:26.83] [RECV] * OK [HIGHESTMODSEQ 1145733] modseq tracked on this mailbox\r\n [Total 61 bytes received.]
 [14:38:26.83] [RECV] MBN00000005 OK [READ-ONLY] SELECT completed\r\n [Total 45 bytes received.]
 
 Thanks, Marcelo.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Hello,
           | Posted: 08 June 2023 at 6:02am | IP Logged |   |  
           | 
 |  
 Are you looking for EXAMINE command by chance? It's a readonly equivalent of SELECT, and there's Imap.ExamineFolder method invoking this IMAP command.
 
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Marcelo Newbie
 
  
 
 Joined: 15 November 2013
 Online Status: Offline
 Posts: 7
 | 
          Hi Igor,
           | Posted: 08 June 2023 at 6:19am | IP Logged |   |  
           | 
 |  
 No, i'm looking a way to get Read-only/Read-write parameter of an specific folder. I see this parameter on imap log after a select command.
 
 Thanks, Marcelo.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Hi Marcelo,
           | Posted: 08 June 2023 at 7:26am | IP Logged |   |  
           | 
 |  
 Once called  Imap.SelectFolder, you can then call Imap.GetServerResponse or Imap.GetServerResponses method to get the response lines.
 
 If the last response contains "[READ-ONLY]", this would let you know the folder is read-only.
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Marcelo Newbie
 
  
 
 Joined: 15 November 2013
 Online Status: Offline
 Posts: 7
 | 
          Hi Alex.
           | Posted: 08 June 2023 at 8:02am | IP Logged |   |  
           | 
 |  
 
 It works!. It could be a better solution to get this value on an imap property, like UidNext. Maybe next release.
 
 Thanks, Marcelo.
 
 
 | 
       
        | Back to Top |     | 
       
       
        |  |