Hello All,

I have a query regarding the support of "location" member of the BODY
structure.

In mail.h its datatype is char*

BODY
{
.......
char *location;         /* body content URI */
....
}

But the RFC3501 says its a *stringlist*.
<<
body location
            A *string list* giving the body content URI as defined in
            [LOCATION].
>>

Hence the problem is seen when following code is executed in
imap4r1.c

body->location = imap_parse_string
(stream,txtptr,reply,NIL,NIL,LONGT);

I am facing this issue against an imap server with RFC3501
implementing "content-location" as stringlist.
e.g.
 
C: fetch bodystructure
S: * 1 FETCH (BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "us-ascii")
        <SPACE>NIL NIL "7BIT" 323 14 NIL NIL NIL NIL)("TEXT"
"HTML"<SPACE>
        ("CHARSET" "iso-8859-1") NIL NIL "QUOTED-PRINTABLE"
50578<SPACE>
               1111 NIL NIL NIL ("http://home.netscape.com/";))<SPACE>
        "MIXED" ("BOUNDARY"
"------------8FC7BFAA529B4689FD642892")<SPACE>
                  NIL NIL NIL))


Note the parentheses in ("http://home.netscape.com/";) above response.

UW IMAP does not handle '(' and ')' when looking for char*, but it
does handle this for STRINGLIST datatype.
Its impact is very high - not able to see attachment.

Am I missing something here or is it a bug in c-client library.


Thanks,
-Amit

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to