Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Get Select Folder [READ-ONLY] Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Marcelo
Newbie
Newbie


Joined: 15 November 2013
Online Status: Offline
Posts: 7
Posted: 08 June 2023 at 5:50am | IP Logged Quote Marcelo

Hi,

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 View Marcelo's Profile Search for other posts by Marcelo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6107
Posted: 08 June 2023 at 6:02am | IP Logged Quote Igor

Hello,

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 View Igor's Profile Search for other posts by Igor
 
Marcelo
Newbie
Newbie


Joined: 15 November 2013
Online Status: Offline
Posts: 7
Posted: 08 June 2023 at 6:19am | IP Logged Quote Marcelo

Hi Igor,

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 View Marcelo's Profile Search for other posts by Marcelo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 08 June 2023 at 7:26am | IP Logged Quote Alex

Hi Marcelo,

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 View Alex's Profile Search for other posts by Alex
 
Marcelo
Newbie
Newbie


Joined: 15 November 2013
Online Status: Offline
Posts: 7
Posted: 08 June 2023 at 8:02am | IP Logged Quote Marcelo

Hi Alex.


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 View Marcelo's Profile Search for other posts by Marcelo
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide