[imp] Problem with viewing inline images.
Hans de Groot
imp@dandy.nl
Fri Nov 22 11:46:51 2002
I am running the version from last weekend.
I am not an expert in CVS but I ran update for imp and horde but during that
update some things went wrong. (I got some errors and found them in this list
and according to someone it was a merge error (ie the <<<<< and >>>> are still
there). So I tried to locate all the files that went wrong, moved them away and
re ran cvs update this time it worked. but I does leave me wondering if there
are other files that are the wrong version or not.
But I asume when I run cvs update I get the head version of horde/imp right?
anyway the hours I spend in getting my attachents to run again. and the fact no
one else seems to have this problem drives me crazy. Specially if you view the
message source all the infomation is there.
unless c-client really handles all the taking appart of the email I think there
must be something wrong with imp. Also the message list shows that there is an
attachement, when I print some log lines is the viewer.php it also "sees" a
image/jpeg type in the message , but than it just does nothing. So imp knows
about the attachment but somefunction does not like it and does not even return
a "unreadble atachment" or something like it, it just stays quiet.
I thought maybe I could hack it but horde and imp are not small programs :-) so
after an evening of trying to discover te "route" a message takes I just gave up.
I send a message with 1 inline and 1 attachement from imp it self to imp.
when I tested what /horde/lib/MIME/viewer.php saw 3 images passed by (strange rigth)
Na check mime_part = Object
Na drivers test mime tpy e= multipart/mixed
Start :::
Na check mime_part = Object
Na drivers test mime tpy e= text/plain
Start :::
Na check mime_part = Object
Na drivers test mime tpy e= image/jpeg
Start :::
Na check mime_part = Object
Na drivers test mime tpy e= image/jpeg
Start :::
Na check mime_part = Object
Na drivers test mime tpy e= image/jpeg
Then I checked to see whay happened in imp/lib/MIME/Viewer/images.php
and the first one was return right away by this part:
if ($contents->viewAsAttachment()) {
return parent::render($mime);
}
when I dumped this part to a file it was teh same pciture as I attached as inline .
The next to image/jpg did not get returned by this function but just seems to
get ingnored by the rest of the code. I think there should have been at least a
mention of a bad or unvieuwable mimetype. but there is no trace what so ever in
the generated message. But than again is if was a code problem why am I the only
one not seeing my atatchments?
Sorry for the long message.
Regards
Hans de Groot
Quoting dscott@phivedesign.com:
> Hans,
>
> This sounds very similar to the on-going battle I am having with IMP properly
> parsing the mime parts of pgp msg's for decryption. The string is instead
> being returned as an object during the decryption process, and indications
> are that some part of the imp mime registry code seems flawed. Are you
> running from the most current HEAD CVS?
>
> Regards,
>
> D.
>
> Quoting Hans de Groot <imp@dandy.nl>:
>
> > I tried putting the inline to false and than I get nothing just like it
> does
> > not
> > show attachments. While before the inlines showed. or if I browse/read
> email
> > in
> > netscape I get attachement like message that my browser does not support
> this
> > imagetype and I can download it (which is okay).
> >
> > I have been looking in the source and I really do not understand why my
> > c-client
> > should be the problem.
> >
> > Does imp rely 100% in pgp to strip mimetypes/email of it's parts?
> >
> > because I did some tests and when I send atachments and the
> > /horde/lib/MIME/viewer.php does pass then to the
> > imp/lib/MIME/viewer/images.php
> > but no result there.
> >
> > Can the not showing of attachements be an imp problem? maybe because of bad
> > updates from cvs (wrong versions of some php files?)
> >
> > Regards
> >
> > Hans de GRoot
> >
> > --
> > IMP mailing list
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> >
>
>
> -----BEGIN PGP PUBLIC KEY BLOCK-----
> Version: GnuPG v1.2.1 (GNU/Linux)
>
> mQGiBD26WqURBACedcEs9KwhwU0mtRvyk78YNhMd/SCov79Q7UExCj0rFKMmGx8C
> 77Xmlv93HobEq9n+Db/oJyXy74E1GMMLN/IRh2ji9vsff4cU6+m5Hj9Z4N3xGyBN
> gU+jr2E4YBBYHuSFEuYoDFR7gRldZafqFfRxSmSmnybMug0P23ktVUBpmwCg2OPN
> Kuatu7jZ5Bsvaoam1N3Y/hkD/3iQOfRvXiLBGsBw6rdw7oivFZ8x174zmMFhX/pN
> N3jdqZ69pnbp8hq71ULjLGhR+Fzhi/hPSCqvut5JGuz/GOjrsAdOgV5pow0ewUkW
> v4jZE+cZmBW0R+F7OqaL+T0PTad0MaLfsp1fHxxEgiRaK6XYN526Y1E00AUW2R0R
> p11LA/9zo8btRyzxG6VrJq3ZTq2pYPONF4YyzPGbBYTJHOYSO+A9AAfufgukD6MC
> ysQahOP/HjJq1p3HKHzzfFIQH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CHjPAdpAKCAOMPDWPMUcbq7zGuxtKpDZ0BkIA==
> =BYZC
> -----END PGP PUBLIC KEY BLOCK-----
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>
More information about the imp
mailing list