<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Tahoma size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV>
<DIV class=messageBody><SPAN class=621501514-29092004><FONT face=Arial
size=2>I have the same problem as outlined in this thread. I replaced
the file in question with the one provided. It did change the error, but
did not seem to resolve it.</FONT></SPAN></DIV>
<DIV class=messageBody><SPAN class=621501514-29092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV class=messageBody><SPAN class=621501514-29092004><FONT face=Arial
size=2>I now get the following:</FONT></SPAN></DIV>
<DIV class=messageBody><SPAN class=621501514-29092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV class=messageBody><SPAN class=621501514-29092004><FONT face=Arial
size=2>The RT server which handled your email did not behave as expected.
It<BR>said:</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><SPAN
class=621501514-29092004>
<DIV class=messageBody><BR><FONT face=Arial size=2>fetchmail: MDA returned
nonzero status 75<BR> not flushed<BR>fetchmail: sleeping at Wed Sep 29
10:23:45 2004</FONT></DIV>
<DIV class=messageBody><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT> </DIV>
<DIV class=messageBody><FONT face=Arial size=2><SPAN
class=621501514-29092004>Thanks for the help,</SPAN></FONT></DIV>
<DIV class=messageBody><FONT face=Arial size=2><SPAN
class=621501514-29092004></SPAN></FONT> </DIV>
<DIV class=messageBody><FONT face=Arial size=2><SPAN
class=621501514-29092004>Sean</SPAN></FONT></DIV>
<DIV class=messageBody><SPAN class=621501514-29092004><FONT face=Arial
size=2>_____________________________</FONT></SPAN></DIV>
<DIV class=messageBody><SPAN class=621501514-29092004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV class=messageBody><SPAN class=621501514-29092004><FONT size=2><FONT
face=Arial size=3>On Thu, Sep 16, 2004 at 09:24:11AM -0500, Michael H. Brown
wrote:</FONT><I class=quote><BR><FONT face=Arial size=3>> I am getting
closer I believe. I am able to get rt-mailgate to check<BR>> the proper
email account on our Exchange server and it sees that there<BR>> are
messages. However I am getting the following error after it checks<BR>> the
mail:</FONT></I><BR><BR><FONT face=Arial size=3>Hey, the attached webmux.pl.in
should fix things; just overwrite the copy<BR>in "C:\Program
Files\OurInternet\Request Tracker\rt\bin" with this.<BR><BR>Let me know if
this works or breaks; I'll make sure it works on
3.0.12-win32.<BR><BR>Thanks,<BR>/Autrijus/<BR>#!@PERL@<BR># BEGIN LICENSE
BLOCK<BR>#<BR># Copyright (c) 1996-2003 Jesse Vincent <</FONT><A
class=email-address href="mailto:jesse@bestpractical.com"><FONT face=Arial
size=3>jesse@bestpractical.com</FONT></A><FONT face=Arial
size=3>><BR>#<BR># (Except where explictly superceded by other copyright
notices)<BR>#<BR># This work is made available to you under the terms of
Version 2 of<BR># the GNU General Public License. A copy of that license
should have<BR># been provided with this software, but in any event can be
snarfed<BR># from </FONT><A class=url href="http://www.gnu.org/"><FONT
face=Arial size=3>www.gnu.org</FONT></A><FONT face=Arial size=3>.<BR>#<BR>#
This work is distributed in the hope that it will be useful, but<BR># WITHOUT
ANY WARRANTY; without even the implied warranty of<BR># MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU<BR># General Public License for
more details.<BR>#<BR># Unless otherwise specified, all modifications,
corrections or<BR># extensions to this work which alter its source code become
the<BR># property of Best Practical Solutions, LLC when submitted for<BR>#
inclusion in the work.<BR>#<BR>#<BR># END LICENSE BLOCK<BR><BR>use
strict;<BR><BR>BEGIN {<BR></FONT><PRE class=art><FONT face=Arial> $ENV{'PATH'} = '/bin:/usr/bin'; # or whatever you need
$ENV{'CDPATH'} = '' if defined $ENV{'CDPATH'};
$ENV{'SHELL'} = '/bin/sh' if defined $ENV{'SHELL'};
$ENV{'ENV'} = '' if defined $ENV{'ENV'};
$ENV{'IFS'} = '' if defined $ENV{'IFS'};
</FONT></PRE><BR><PRE class=art><FONT face=Arial> eval { require Apache2; require APR::Table; require MasonX::Apache2Handler; 1 } or
eval { require Apache2; require Apache::compat; 1 } or die $@
if $ENV{'MOD_PERL'}
and $ENV{'MOD_PERL'} =~ m{mod_perl/(?:2|1\.9)};
</FONT></PRE><BR><FONT face=Arial>}<BR><BR>use lib ( "@LOCAL_LIB_PATH@",
"@RT_LIB_PATH@" );<BR>use RT;<BR><BR>package RT::Mason;<BR><BR>use CGI
qw(-private_tempfiles); #bring this in before mason, to make sure
we<BR></FONT><PRE class=art><FONT face=Arial> #set private_tempfiles
</FONT></PRE><BR><FONT face=Arial>use HTML::Mason; # brings in subpackages:
Parser, Interp, etc.<BR><BR>use vars qw($Nobody $SystemUser $Handler
$r);<BR><BR>#This drags in RT's config.pm<BR>RT::LoadConfig();<BR><BR>use
Carp;<BR><BR>{<BR><BR></FONT><PRE class=art><FONT face=Arial> package HTML::Mason::Commands;
use vars qw(%session);
</FONT></PRE><BR><PRE class=art><FONT face=Arial> use RT::Tickets;
use RT::Transactions;
use RT::Users;
use RT::CurrentUser;
use RT::Templates;
use RT::Queues;
use RT::ScripActions;
use RT::ScripConditions;
use RT::Scrips;
use RT::Groups;
use RT::GroupMembers;
use RT::CustomFields;
use RT::CustomFieldValues;
use RT::TicketCustomFieldValues;
</FONT></PRE><BR><PRE class=art><FONT face=Arial> use RT::Interface::Web;
use MIME::Entity;
use Text::Wrapper;
use CGI::Cookie;
use Time::ParseDate;
use HTML::Entities;
use HTML::Scrubber;
use Text::Quoted;
</FONT></PRE><FONT face=Arial>}<BR><BR>use
RT::Interface::Web::Handler;<BR>$Handler =
RT::Interface::Web::Handler->new(@RT::MasonParameters);<BR><BR>sub handler
{<BR></FONT><PRE class=art><FONT face=Arial> ($r) = @_;
</FONT></PRE><BR><PRE class=art><FONT face=Arial> local $SIG{__WARN__};
local $SIG{__DIE__};
</FONT></PRE><BR><PRE class=art><FONT face=Arial> RT::Init();
</FONT></PRE><BR><PRE class=art><FONT face=Arial> # We don't need to handle non-text, non-xml items
if ($r->content_type =~ m/^httpd\b.*\bdirectory/i) {
# Our DirectoryIndex is always index.html, regardless of httpd settings
$r->filename( $r->filename . 'index.html' );
}
elsif (defined( $r->content_type )) {
$r->content_type =~ m!(^text/|\bxml\b)!i or return -1;
}
</FONT></PRE><BR><PRE class=art><FONT face=Arial> my %session;
my $status;
eval { $status = $Handler->handle_request($r) };
if ($@) {
$RT::Logger->crit($@);
}
</FONT></PRE><BR><PRE class=art><FONT face=Arial> undef(%session);
</FONT></PRE><BR><PRE class=art><FONT face=Arial> if ( $RT::Handle->TransactionDepth ) {
$RT::Handle->ForceRollback;
$RT::Logger->crit(
</FONT></PRE><FONT face=Arial>"Transaction not committed. Usually indicates a
software fault. Data loss may have occurred"<BR></FONT><PRE class=art><FONT face=Arial> );
}
return $status;
</FONT></PRE><FONT
face=Arial>}<BR><BR>1;<BR></FONT></FONT></SPAN></SPAN></DIV></DIV></BLOCKQUOTE></BODY></HTML>