Failed to parse body structure

Paul <[email protected]> Fri, 27 May 2011 15:50:51 +0400
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
Today I've made a number of libetpan tests to determine if it succeeds 
to parse structure of a little more complex message. And I must 
regretfully admit that mailmessage_get_bodystructure() failed at the 
first example email:

* 52 FETCH (UID 52 BODYSTRUCTURE ((("text" "plain" ("charset" "KOI8-R" 
"format" "flowed") NIL NIL "8bit" 35 4 NIL NIL NIL NIL)(("text" "html" 
("charset" "KOI8-R") NIL NIL "8bit" 354 12 NIL NIL NIL NIL)("image" 
"jpeg" ("name" "kia.jpg") "<[email protected]>" NIL 
"base64" 78924 NIL ("inline" ("filename" "kia.jpg")) NIL NIL) "related" 
("boundary" "------------000800040900060800090208") NIL NIL NIL) 
"alternative" ("boundary" "------------000806050501080607010702") NIL 
NIL NIL)("text" "plain" ("name" "LogKnot.txt") NIL NIL "7bit" 50 4 NIL 
("attachment" ("filename" "LogKnot.txt")) NIL NIL)("image" "jpeg" 
("name" 
"=?KOI8-R?Q?=F0=E1=F2=E1=E4_=F0=EF=E2=E5=E4=F9=2E_=ED=CF=D3=CB=D7=C1=2E?==?KOI8-R?Q?_=EB=D2=C1=D3=CE=C1=D1_=F0=CC=CF=DD=C1=C4=D8_=2809=2E05?==?KOI8-R?Q?=2E2011=29_IPTV=5B12-54-31=5D=2EJPG?=") 
NIL NIL "base64" 104260 NIL ("" NIL) NIL NIL) "mixed" ("boundary" 
"------------090101030604050305040000") NIL NIL NIL) ENVELOPE ("Fri, 27 
May 2011 15:20:05 +0400" "test - 
=?KOI8-R?Q?=D0=D2=CF=D7=C5=D2=CB=C1_=ED=E9=ED=E5=2E=3F?=" (("Paul" NIL 
"bobrof" "gmail.com")) (("Paul" NIL "bobrof" "gmail.com")) (("Paul" NIL 
"bobrof" "gmail.com")) ((NIL NIL "vezde-biz" "ya.ru")) NIL NIL NIL 
"<[email protected]>") BODY[HEADER.FIELDS (References)] {2}
)


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1