Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7681675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:23:43+00:00 2026-05-31T18:23:43+00:00

im working on a .net imap client when i fetch envelopes i get back

  • 0

im working on a .net imap client

when i fetch envelopes i get back lines like this

  • 2 FETCH (FLAGS (\SEEN) INTERNALDATE “13-Nov-2011 02:38:07 -0700” RFC822.SIZE 10993 UID 62 ENVELOPE (“13 Nov 2011 12:37:32 +0200” “Your Order” (({15}

  • 1 FETCH (FLAGS (\SEEN) INTERNALDATE “11-Nov-2009 13:54:35 -0700” RFC822.SIZE 38501 UID 1 ENVELOPE (“Wed, 11 Nov 2009 17:50:29 -0400” “Newegg.com – Order Confirmation” (({6}

    Newegg NIL “info” “newegg.com”)) (({6}

    Newegg NIL “info” “newegg.com”)) NIL ((NIL NIL “office” “mysite.com”)) NIL NIL NIL “”))

the rest of the envelope is on the next line

sometimes it breaks on {15} like the first

sometimes on {6}

maybe there are others as well, so far i had these

i tried many different encodings in the streamwriter and/or streamreader (ascii,utf7,utf8)

so what do these numbers mean? or how can i just correctly read the line till the end

thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:23:45+00:00Added an answer on May 31, 2026 at 6:23 pm

    You need to read up on the IMAP protocol if you’re implementing your own client rather than using an existing library. The meaning of the numbers in curly brackets is well explained in the RFC.

    It’s a literal. The bracketed number is always followed by an end of line (CRLF) and then a number of raw bytes that form the value of the string. The number between the brackets is a count of the number of raw bytes that follow. You need to read exactly that many raw bytes after the CRLF (and be careful about encoding and line ending conversions: if you decode text or translate line endings then you might read the wrong number of raw bytes).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose this simple scenario: My client has an already working .net application and he/she
I've a working .Net website, I get the code from the server and copy/past
Previous working asp.net webforms app now throws this error: System.MissingMethodException: Method not found The
I am working with .net 4.0 c#. I want to be able to get
I left the .net about 3 years back when I was working on .net
I am working with .NET and I want to do some string manipulations like
Currently I am working on an ASP.net webforms project where I would like to
As I am working on .Net windows form application, we're using MongoDB for back-end
I am working on an imap email client. I have a search function, which
I'm trying to get a ScriptManager working in .NET 3.5 but getting a scriptmanager

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.