Squirrelmail is replacing images with blank images in some cases. This
is due to the image not having a file extension squirrelmail recognizes.
In particular, I am dealing with email that has images with the
following form of url.

 

<img
src=http://www.powells.com/cgi-bin/imageDB.cgi?isbn=0384344321&t=60> 

 

And the code in functions/mime.php lines 1750 and 1751.

 

                                    if
(!in_array($ext,array('.jpeg','.jpg','xjpeg','.gif','.bmp','.jpe','.png'
,'.xbm'))) {

                                        $attvalue = $sQuote . SM_PATH .
'images/blank.png'. $sQuote;

 

Since the image is getting served up by a cgi script squirrelmail
replaces it with a blank. I am no expert on html specs but I thought
extensions were supposed to be ignored in favor of content-type in the
http header. What do you all think?

 

 

Configtest.php follows.

 


SquirrelMail configtest


This script will try to check some aspects of your SquirrelMail
configuration and point you to errors whereever it can find them. You
need to go run conf.pl in the config/ directory first before you run
this script.

SquirrelMail version:

1.4.15

Config file version:

1.4.0

Config file last modified:

21 May 2009 13:42:14

Checking PHP configuration...
    PHP version 5.2.6-1+lenny3 OK.
    display_errors: 
    error_reporting: 6135
    variables_order OK: EGPCS.
    PHP extensions OK. Dynamic loading is disabled.
Checking paths...
    Data dir OK.
    Attachment dir OK.
    Plugins OK.
    Themes OK.
    Default language OK.
    Base URL detected as: https://lithium.powells.com/squirrelmail/src
(location base autodetected)
Checking outgoing mail service....
    SMTP server OK (220 lithium.powells.com)
Checking IMAP service....
    IMAP server ready (* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN
NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL
ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2008 Double
Precision, Inc. See COPYING for distribution information.)
    Capabilities: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS 
Checking internationalization (i18n) settings...
     gettext - Gettext functions are available. On some systems you must
have appropriate system locales compiled.
     mbstring - Mbstring functions are available.
     recode - Recode functions are unavailable.
     iconv - Iconv functions are available.
     timezone - Webmail users can change their time zone settings.
Checking database functions...
     PHP Pear DB support is present.
    mysql database support present.
    preferences database connect successful.
    mysql database support present.
    addressbook database connect successful.
    mysql database support present.
    global addressbook database connect successful.

Congratulations, your SquirrelMail setup looks fine to me!

 

 

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to