[imp] javascript problem with messages that guess MIME type...
    Amith Varghese 
    amith at xalan.com
       
    Wed Jan 29 12:39:48 PST 2003
    
    
  
> Here is some more info... sorry I didn't send this the first time.  Guess its
> not really a javascript problem.
> 
> file: Using regular magic file `/usr/share/magic.mime'
> [Tue Jan 28 23:06:19 2003] [error] PHP Notice:  Undefined offset:  1 in
> /usr/local/apache/htdocs/mail/horde/lib/MIME/Part.php on line 349
> [Tue Jan 28 23:06:20 2003] [error] PHP Fatal error:  Call to a member
> function
> on a non-object in
> /usr/local/apache/htdocs/mail/horde/imp/templates/compose/attachments.inc on
> line 2
I put a var_dump($mimetypes) right before line 349 and tried to forward one of
the messages that was giving me a problem.  Here is what I got
string(7) "1/mixed"
string(7) "0/plain"
string(14) "3/octet-stream"
string(14) "3/octet-stream"
string(4) "data"
string(4) "data"
It looks like it when trying to do
list($this->_type, $this->_subtype) = explode('/', String::lower($mimetype));
on the data part and assign it the two variables it has a problem.  However I'm
not sure the right way to fix it.  Any help would be appreciated.
Amith
    
    
More information about the imp
mailing list