[imp] javascript problem with messages that guess MIME type...

Amith Varghese amith at xalan.com
Sun Feb 2 19:58:19 PST 2003


This problem still exists in today's HEAD.  However the problem can be fixed 
if you use --enable-mime-magic

Amith


> ----- Message from amith at xalan.com ---------
>     Date: Wed, 29 Jan 2003 12:39:48 -0500
>     From: Amith Varghese <amith at xalan.com>
> Reply-To: Amith Varghese <amith at xalan.com>
>  Subject: Re: [imp] javascript problem with messages that guess MIME type...
>       To: "imp at lists.horde.org" <imp at lists.horde.org>
> 
> > 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
> 
> 
> ----- End message from amith at xalan.com -----






More information about the imp mailing list