Click here to Skip to main content
11,706,455 members (48,103 online)
Rate this: bad
Please Sign up or sign in to vote.
i am using visual C#.
i have some body structure of the form

BODYSTRUCTURE ((("TEXT" "PLAIN" ("CHARSET" "utf-8") NIL NIL "QUOTED-PRINTABLE" 717 9 NIL NIL NIL)(("TEXT" "HTML" ("CHARSET" "utf-8") NIL NIL "QUOTED-PRINTABLE" 3126 40 NIL NIL NIL)("IMAGE" "PNG" ("NAME" "image.png") "<>" NIL "BASE64" 494712 NIL NIL NIL) "RELATED" ("BOUNDARY" "-1280599187-776620704-1335962964=:671") NIL NIL) "ALTERNATIVE" ("BOUNDARY" "-1280599187-319159910-1335962964=:671") NIL NIL)("TEXT" "PLAIN" ("CHARSET" "US-ASCII" "NAME" "imap") NIL NIL "BASE64" 53416 684 NIL ("ATTACHMENT" ("FILENAME" "Imap.txt")) NIL)("IMAGE" "JPEG" ("NAME" "img72.jpg") NIL NIL "BASE64" 1462716 NIL ("ATTACHMENT" ("FILENAME" "img72.jpg")) NIL)("APPLICATION" "PDF" ("NAME" "April") NIL NIL "BASE64" 46294 NIL ("ATTACHMENT" ("FILENAME" "April 2012.pdf")) NIL)("AUDIO" "MPEG" ("NAME" "audio") NIL NIL "BASE64" 189560 NIL ("ATTACHMENT" ("FILENAME" "audio.mp3")) NIL) "MIXED" ("BOUNDARY" "-1280599187-1454468470-1335962964=:671") NIL NIL)

how can i know the various part numbers.
i want to fetch only some parts of the message.

plz don't give reference to any imap client library.

i just want to know the syntax used in imap to do this.

does the server always returns the information regarding boundary in the bodystructure fetch?

thanks in advance

plz help
Posted 16-May-12 23:01pm
Edited 5-Jun-12 5:34am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 202
1 Sergey Alexandrovich Kryukov 135
2 chainerlt 110
3 Mika Wendelius 80
4 ppolymorphe 71
0 OriginalGriff 9,190
1 Sergey Alexandrovich Kryukov 8,407
2 CPallini 5,189
3 Maciej Los 4,756
4 Mika Wendelius 3,686

Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 5 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100