On 1 Jul 2003 at 12:17, Marc Groot Koerkamp wrote:

> Can somebody tell me if the following bodystructure (send by
> Mercury32 v.3.32.) is a valid bodystructure?
> 
> * 1 FETCH (BODYSTRUCTURE (("text" "plain"
> ("CHARSET" "iso-8859-1") NIL NIL "NIL" 185 7 NIL NIL
> NIL)("message" "disposition-notification" NIL NIL NIL "NIL"
> 304 (NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL)
> ("TEXT" "PLAIN" NIL NIL NIL "7BIT" -2 -1 NIL NIL NIL) 6
> NIL NIL NIL) "report" ("BOUNDARY" "----
> =_20030701102219_72153") NIL NIL NIL))
> 
> According me the following things are wrong:
> 
> 1: there is an envelope structure present in the
>    message/disposition-notification part. Rfc3501 however tells me

Yes, this is a known bug and is being fixed in the next version (I write and 
maintain Mercury/32). The Mercury/32 IMAP server is still a relatively 
recent product and some of the wrinkles are still getting ironed out of it. In 
this particular case, I didn't read the specification carefully enough - I 
assumed that an envelope had to be returned for any item of type 
message/*, where the specification is very specific about message/rfc822. 
Definitely my error.

> 2: the included bodystructure for above part contains negative size
>    and lines entries;

I have no idea at all what happened there... :-(  It may be related to the 
problem referred to in [1].

> 3: body encoding "NIL" is a weird encoding.

Almost certainly from the same place as the bizarre negative line and size 
counts. My best guess is that the body part wasn't available when I was 
doing the calculations - I definitely need to add some bulletproofing for 
that.

Cheers!

-- David --

------------------ David Harris -+- Pegasus Mail ----------------------
  Box 5451, Dunedin, New Zealand | e-mail: [EMAIL PROTECTED]
           Phone: +64 3 453-6880 | Fax: +64 3 453-6612

Real newspaper headlines from US Papers:
   "Three ambulances take blast victim to hospital".


Reply via email to