> 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 > > 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. > Do you have PHP installed as CGI or as DSO? -- Tomas -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users