Attachments to Eudora

David Richards d.richards@qut.edu.au
Tue, 23 Jan 2001 15:27:29 +1000


Hi,

More again.  Further to my investigations where a problem exists with
sending attachments to Eudora with IMP 2.2.3.  The problem does not seem
to be the 'Content-Disposition: inline' header, it is the
'MIME-Version:' header.

IMP is truncating the header to 'MIME-Version: 1' when it should be
'MIME-Version: 1.0' according to RFC 2045:

	a formal BNF is given for the content of the MIME-Version field:

     		version := "MIME-Version" ":" 1*DIGIT "." 1*DIGIT

It seems that the function called at line 202 of horde/lib/mime.lib wich
is:

function header ($envelope) {
    $envelope['MIME-Version'] = '1.0';
    //$envelope = $this->encode($envelope);   <- this one.
    if ($this->parts() > 1) {
      $envelope['Content-Type'] = 'multipart/mixed; boundary="' .
$this->separator . '"';
    } else {
      $envelope = $this->only_part_header($envelope);
    }
    return $envelope;
  } // header()

Is removing the '.0' from the '1.0', I tried to trace back through the
code to find the real problem, but I do not understand PHP at all.  You
may notice that the above has that line commented out, that was for
testing purposes.

Can someone please track down the real problem, and tell me how to fix
it?  I is obviously up higher (down lower) in the function calls.

Thanks,

-- 
David Richards
Project Manager (Messaging)
Information Technology Services
Queensland University of Technology