[imp] lib/MIME/Viewer/html.php

amith at xalan.com amith at xalan.com
Tue Apr 22 20:26:41 PDT 2003


Quoting Michael M Slusarz <slusarz at bigworm.colorado.edu>:

| Quoting "amith at xalan.com" <amith at xalan.com>:
|
| | I have s S/MIME message that has multipart/mixed content (text, binary
| | attachment, and html) in it.  In html.php I get the following error when
| | I try
| | to view the message:
| |
| | Fatal error: Call to undefined function: getmessageindex() Line 154
| |
| | It seems that $contents is defined (the object is not null) but that it
| | doesn't
| | have the function defined.  Is there some way that $contents could be of
| | type
| | MIME_Contents and not IMP_Contents and that may be the reason why I'm
| | getting
| | this error?  Please let me know if you need any other info to debug this.
| |
| | I'm running CVS HEAD.
|
| Your analysis is correct.  Embedded parts in a message will be a
| MIME_Contents object instead of an IMP_Contents object.  This is correctly
| dealt with in the pgp viewer - I haven't really touched the S/MIME viewer
| all that much because 1) it was really Mike's baby and 2) I don't have
| access to debug S/MIME messages.  If someone wants to take a look at the
| pgp solution and move it to the smime stuff it will be appreciated.
|

Could you be more specific about where the pgp viewer differs from the SMIME
one?  I've been looking at the code for a while now and the code looks very
similar.  If you could explain where you handle it in your code i'll try to
port it to the SMIME code.

Thanks
Amith



More information about the imp mailing list