[rt-users] Mailgate attachement truncate
Derek Buttineau
derek at csolve.net
Fri Aug 1 14:34:20 EDT 2003
Update on this, using the Hack to get 1.99_09 to work with RT3 allowed
me to get it up and running with that new instance of mod_perl, which in
turn has fixed the truncation issue I was experiencing :)
Derek
Hack:
require Apache::RequestUtil;
no warnings 'redefine';
my $sub = *Apache::request{CODE};
*Apache::request = sub {
my $r;
eval { $r = $sub->('Apache'); };
# warn $@ if $@;
return $r;
};
Derek Buttineau wrote:
> I think it has to do with the mod_perl2 interface myself.. but I could
> be wrong. I have the same problem with a FreeBSD/mod_perl2/Apache2
> setup, long attanchments end up getting truncated all the time though
> at about 6k for me.
>
> On that note as well, going up to the latest release of the mod_perl2
> code (1.99_09) from my current installation of (1.99_07), seems to
> have introduced a new wrinkle.. with that version webmux.pl fails to
> load:
>
> [Fri Aug 01 11:52:26 2003] [error] Global $r object is not available.
> Set:
> PerlOptions +GlobalRequest
> in httpd.conf at
> /usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line
> 567.
> Compilation failed in require at (eval 4) line 1.
>
> [Fri Aug 01 11:52:26 2003] [error] Can't load Perl file:
> /usr/local/rt3/bin/webmux.pl for server rt.csolve.net:0, exiting...
>
> Reverting back to 1.99_07 works fine, I may end up doing the work
> around with a second Apache/RT installation, though the truncation
> isn't a wholy huge issue for us at the moment as the majority of
> tickets e-mailed in are under than size typically.
>
> Derek
>
> Gary Richardson wrote:
>
>> For all of those searching the archives looking for solutions, this
>> was the
>> problem. I'm not too sure what exact part of RH/mod_perl/Apache2 is
>> causing
>> the problem.
>> I simply compiled a 1.3.28 Apache with mod_perl 1.27 on the mail
>> server and
>> had mailgate reference that instead of the web server. My RT now accepts
>> large attachements :)
>>
>> Out.
>>
>> -----Original Message-----
>> From: Jesse Vincent [mailto:jesse at bestpractical.com] Sent: Thursday,
>> July 31, 2003 10:51 AM
>> To: Gary Richardson
>> Cc: rt-users at lists.fsck.com
>> Subject: Re: [rt-users] Mailgate attachement truncate
>>
>>
>> You're running into a known issue with RedHat 8's build of mod_perl
>>
>>
>> On Thu, Jul 31, 2003 at 10:49:06AM -0700, Gary Richardson wrote:
>>
>>
>>> Hey Guys,
>>>
>>> I'm running RT 3.0.3 on a RH8.0 box. When messages go in via
>>> mailgate, they are truncated at 3.5k every time. This includes the
>>> regular message and any other attachements.
>>>
>>> If I attache a larger file via the web interface all goes well.
>>>
>>> Based on a previous post about this problem, I have in my
>>> RT_SiteConfig.pm:
>>>
>>> And in my my.cnf (on the server machine):
>>>
>>> Set($MaxAttachmentSize , 10000000); Set($TruncateLongAttachments ,
>>> undef); Set($DropLongAttachments , undef);
>>>
>>> [mysqld]
>>> set-variable = max_allowed_packet=16M
>>>
>>> RT is spread out between a web server running the application, a
>>> database server running the database and and qmail mail server with
>>> mailgate. These are all redhat 8.0 boxes.
>>>
>>> Thanks.
>>>
>>>
>>>
>>
>>
>>
>>
>
--
Regards,
Derek Buttineau
Internet Systems Administrator
Compu-SOLVE Internet Services
More information about the rt-users
mailing list