On Thu, Jun 15, 2006 at 3:35 PM, AragonX <[email protected]> wrote:
> This plugin doesn't seem to want to work for me. It is supposed to allow
> me to view and download the contents of winmail.dat files. It properly
> shows the contents of the file but crashes when I try to download them. I
> get the following error when I click on the download button:
>
> ERROR: Could not complete request.
> Query SELECT ""
> Reason Given: Invalid mailbox name
>
> In my httpd error_log I get the following:
>
> Undefined variable: HTTP_SERVER_VARS in /var/www/
> html/internal/squirrelmail/plugins/attachment_tnef/tnef.php on line 171,
> referer:
> http://www.dcsnow.com/internal/squirrelmail/src/read_body.php?mailbox=Trash&pa
> ssed_id=2735&startMessage=1
Sorry for the very late reply, but a version of this plugin has been
released that will probably solve this issue. If not, let us know.
Thanks!
> I find this block of code in tnef.php:
>
> foreach ($tnef_files as $file) {
>
> if (get_class($file) != "tnefvcard") {
> $dl_href = 'tnef.php?' . $HTTP_SERVER_VARS['QUERY_STRING'] .
> "&file_id=$id";
> $body .= '<TR><TD> </TD><TD>' .
> "<A HREF=\"$dl_href\">" . $file->getName() . "</A> </TD>" .
> '<TD><SMALL><b>' . show_readable_size($file->getSize()) .
> '</b> </small></TD>' .
> sprintf("<TD><SMALL>[ %s ] </SMALL></TD>", $file->getType() ) .
> '<TD><SMALL></SMALL></TD><TD><SMALL> ' .
> "<A HREF=\"$dl_href&absolute_dl=1\">" . _("download") . "</A>" .
> "</SMALL></TD></TR>\n";
> $show_it = 1;
> }
> $id++;
> }
>
> This plugin hasn't been updated since 2003. Was HTTP_SERVER_VARS
> something that used to be defined somewhere else in SM and has since been
> removed?
>
> Any help would be appreciated.
--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
-----
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