EX_TEMPFAIL problem

Hello All,

I saw the following posting by jesse

http://marc.free.net.ph/message/20040422.052935.4b6eacf8.html

I saw that there are some modifications done to the EmailParser.pm and
Template_Overlay.pm.

I get the message “Couldn’t write to temp dir on disk. using more memory and
processor” in the logs when the EX_TEMPFAIL error occurs. Only a reboot
fixes this issue.

Will this fix the problem I have? If so could you please tell me where I can
find these modified files?

I would really appreciate any help on this.

Thanks,

/RajFrom: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of
rt-users-request@lists.bestpractical.com
Sent: Tuesday, May 04, 2004 11:02 AM
To: rt-users@lists.bestpractical.com
Subject: RT-Users Digest, Vol 2, Issue 7

Send RT-Users mailing list submissions to
rt-users@lists.bestpractical.com

To subscribe or unsubscribe via the World Wide Web, visit
The rt-users Archives
or, via email, send a message with subject or body ‘help’ to
rt-users-request@lists.bestpractical.com

You can reach the person managing the list at
rt-users-owner@lists.bestpractical.com

When replying, please edit your Subject line so it is more specific
than “Re: Contents of RT-Users digest…”

Today’s Topics:

  1. Statistics for RT3 (Cassily, Ryan)
  2. Re: Statistics for RT3 (Gwendolynn ferch Elydyr)
  3. SpamAssassin filter for RT 3.0.10 (Larry Stone)
  4. Re: SpamAssassin filter for RT 3.0.10 (Robert Spier)
  5. RE: Performance issues with reply (Senoner Samuel)
  6. Re: Performance issues with reply (Jesse Vincent)
  7. rt2-to-rt3 1.23 Problem: “Couldn’t create attachment”
    (Chen Chang)
  8. Ticket Extraction not working in RTFM (Charlie Benatti)

Message: 1
Date: Mon, 3 May 2004 17:19:25 -0400
From: “Cassily, Ryan” rcassily@DENOVIS.COM
Subject: [rt-users] Statistics for RT3
To: rt-users@lists.bestpractical.com
Message-ID:

B5A4987C50B02D4B8DB479C579634624682B4E@exchsrvr-1.ehealthdirect.com
Content-Type: text/plain; charset=“iso-8859-1”

Hello all,

Has anyone had luck with installing this stats package? I can’t seem to
find the installation instructions anywhere. Thank in advance for your
help.

-Ryan

From: Aram Smith [mailto:aram.smith@appiancorp.com]
Sent: Wednesday, April 21, 2004 3:52 PM
To: Dave Dennis; rt-users@lists.bestpractical.com
Subject: RE: [rt-users] Statistics for RT3

Yes that’s it. Here’s the link:
py Request Tracker Report download | SourceForge.net Sorry for any confusion. At
that link there is a brief discussion regarding “win32” support, but it
doesn’t appear there was ever a release. Thanks.

From: Dave Dennis [mailto:dmd@speakeasy.org]
Sent: Wednesday, April 21, 2004 3:46 PM
To: Aram Smith
Subject: Re: [rt-users] Statistics for RT3

Dear Aram,

I went looking for “rtstats 1.0.14” (or variations)
in freshmeat.net and sourceforge.net, was unsuccessful,
even when looking up under RT or “request tracker”

Is this the name of the package? I see a py Request Tracker Report
which also is at version 1.0.14 … is this it?

Thanks!

I recently installed RT 3.0.10 on a Windows 2K server SP4. Its running
well and I was hoping to integrate a reports/statistics function. In
sourceforge I saw a download for rtstats 1.0.14 but only for UNIX. I
also downloaded the reports\statistics gunzip from the bestpractical
site and extracted it to the server, but when I go to the pages in my
browser it looks like XML is not running properly or there is an
application missing. Any chance anyone can point me in the right
direction for installing the reporting function? Thanks,

Aram Smith


Aram Smith
Appian Corporation
8000 Towers Crescent Drive
Vienna, VA 22182
Phone: (703) 442-1051
Mobile: (240) 426-8751
Fax: (703) 442-8919
Email: aram.smith@appiancorp.com

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Developer and Administrator training is coming to LA, DC and Frankfurt
this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

Message: 2
Date: Mon, 3 May 2004 18:03:40 -0400 (EDT)
From: Gwendolynn ferch Elydyr gwen@reptiles.org
Subject: Re: [rt-users] Statistics for RT3
To: “Cassily, Ryan” rcassily@DENOVIS.COM
Cc: rt-users@lists.bestpractical.com
Message-ID: 20040503174359.L1054-100000@iguana.reptiles.org
Content-Type: TEXT/PLAIN; charset=US-ASCII

Has anyone had luck with installing this stats package? I can’t seem to
find the installation instructions anywhere. Thank in advance for your
help.

Hrm. Running RT3, I have the statistics module installed and purring
along happily. My install notes are scanty, but note:

  • added statistics module to RT by copying it to the html root
  • installed Apache::GD::Graph, and a zillion dependancies
  • need to build libgd2.0.15 - put in /usr/local/lib

The readme is pretty self-explanatory IMHO.

cheers!
“A cat spends her life conflicted between a deep, passionate and profound
desire for fish and an equally deep, passionate and profound desire to
avoid getting wet. This is the defining metaphor of my life right now.”

Message: 3
Date: Mon, 3 May 2004 22:51:17 EDT
From: Larry Stone lcs@MIT.EDU
Subject: [rt-users] SpamAssassin filter for RT 3.0.10
To: rt-users@lists.bestpractical.com
Message-ID: CMM.0.90.4.1083639077.lcs@defiant.mit.edu

I got SpamAssassin working via the mail filter in
RT::Interface::email::Filter::SpamAssassin. The filter needed a
complete renovation; perhaps it came from some much earlier RT version?

The appended patch works with SpamAssassin 2.63, only tested on RT 3.0.10/
Solaris 9/MySQL/Perl5.8.3/FastCGI/etc.

There was another tricky bug: apparently SpamAssassin munges the $_
global variable when a message rings the spam bell, such that its value
in the Gateway function’s loop around @RT::MailPlugins gets unset. This
clears the plugin entry so it breaks on the next incoming email. I know
the functions/operators that set $_ are supposed have local effects but
apparently something doesn’t. Switching to an explicit loop variable
fixed the symptom, so that patch is included.

I also added a couple of new features:

  • It logs the message-id header of a message it drops on the floor at
    the “info” level so you can match it with MTA logs to diagnose cases
    of vanished mail.
  • Adds the “X-RT-SpamAssassin-Score” header so a scrip can sort the
    spammiest messages into a separate queue.

I know the spam filter could be implemented in the MTA or in procmail
driving the rt-mailgate, but this looked easier to maintain. If there
aren’t
any objections I’ll submit it as a patch.

-- Larry

*** lib/RT/Interface/Email.pm.orig Fri Jan 2 17:55:55 2004
— lib/RT/Interface/Email.pm Mon May 3 19:52:05 2004
*** 500,521 ****

  # Since this needs loading, no matter what

! for (@RT::MailPlugins) {
my $Code;
my $NewAuthStat;
! if ( ref($) eq “CODE” ) {
! $Code = $
;
}
else {
! $_ = “RT::Interface::email::blush:" unless
/^RT::Interface::email::/;
! eval "require $
;”;
if ($@) {
! die ("Couldn’t load module $: $@");
next;
}
no strict ‘refs’;
! if ( !defined( $Code = *{ $
. “::GetCurrentUser” }{CODE} ) )
{
! die (“No GetCurrentUser code found in $_ module”);
next;
}
}
— 500,522 ----

  # Since this needs loading, no matter what

! my $pi;
! foreach $pi (@RT::MailPlugins) {
my $Code;
my $NewAuthStat;
! if ( ref($pi) eq “CODE” ) {
! $Code = $pi;
}
else {
! $pi = “RT::Interface::email::$pi” unless $pi =~
m/^RT::Interface::email::/;
! eval “require $pi;”;
if ($@) {
! die (“Couldn’t load module $pi: $@”);
next;
}
no strict ‘refs’;
! if ( !defined( $Code = *{ $pi . “::GetCurrentUser” }{CODE} ) )
{
! die (“No GetCurrentUser code found in $pi module”);
next;
}
}
*** lib/RT/Interface/Email/Filter/SpamAssassin.pm.orig Fri Jan 2 17:55:55
2004
— lib/RT/Interface/Email/Filter/SpamAssassin.pm Mon May 3 20:15:40
2004
*** 27,41 ****
my $spamtest = Mail::SpamAssassin->new();

sub GetCurrentUser {
! my $item = shift;
! my $status = $spamtest->check ($item);
! return (undef, 0) unless $status->is_spam();
! eval { $status->rewrite_mail() };
! if ($status->get_hits > $status->get_required_hits()*1.5) {
# Spammy indeed
! return (undef, -1);
}
! return (undef, 0);
}

=head1 NAME
— 27,48 ----
my $spamtest = Mail::SpamAssassin->new();

sub GetCurrentUser {
! my $result = 0;
! my %args = ( Message => undef,
! @_ );
! my $status =
$spamtest->check_message_text($args{‘Message’}->as_string());
! if ($status->is_spam() &&
! $status->get_hits() > $status->get_required_hits()*1.5) {
# Spammy indeed
! my $mid = $args{‘Message’}->head()->get(‘Message-Id’);
! my $hits = $status->get_hits();
! $RT::Logger->info(“Filter::SpamAssassin: Dropping message $mid
because spam score = $hits”);
! $result = -1;
! } else {
! $args{‘Message’}->head()->replace(‘X-RT-SpamAssassin-Score’,
sprintf(“%.3f”, $status->get_hits()));
}
! $status->finish();
! return (undef, $result);
}

=head1 NAME

Message: 4
Date: Mon, 03 May 2004 22:14:04 -0700
From: Robert Spier rspier@pobox.com
Subject: Re: [rt-users] SpamAssassin filter for RT 3.0.10
To: Larry Stone lcs@MIT.EDU
Cc: rt-users@lists.bestpractical.com
Message-ID: m3brl4u63n.wl_rspier@pobox.com
Content-Type: text/plain; charset=US-ASCII

There was another tricky bug: apparently SpamAssassin munges the $_
global variable when a message rings the spam bell, such that its value
in the Gateway function’s loop around @RT::MailPlugins gets unset. This
clears the plugin entry so it breaks on the next incoming email. I know
the functions/operators that set $_ are supposed have local effects but
apparently something doesn’t. Switching to an explicit loop variable
fixed the symptom, so that patch is included.

Here’s an example to share a legit use of local:

$_=3;
{
 local $_;
 something_that_modifies_dollar_underbar();
}
# $_ == 3

Message: 5
Date: Tue, 4 May 2004 08:33:54 +0200
From: “Senoner Samuel” Samuel.Senoner@eurac.edu
Subject: RE: [rt-users] Performance issues with reply
To: “Jesse Vincent” jesse@bestpractical.com, “Steven Saner”
ssaner@hubris.net
Cc: rt-users@lists.bestpractical.com
Message-ID:
8ABC35686C73554691F3481C4023BE5E015BC0C0@abz01be.eurac.edu
Content-Type: text/plain; charset=“iso-8859-1”

Is it somehow possible to have access through web to the repository?
It was very usefull to see what changes are between the versions.

Thanks

SAmuel

From: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: Monday,03 May,2004 19:05
To: Steven Saner
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Performance issues with reply

You don’t say whether you’re using MySQL or Postgres. But 3.0.11
includes a pretty serious performance fix for Elements/SelectOwner.
I bet that will solve your problem.

We are using Postgres 7.4.2. Are you recommending 3.0.11? I don’t see
that anywhere. Did you mean 3.1.11?

Nope, I mean the next release of 3.0, which is due out soon.

Steve

Steven Saner ssaner@hubris.net Voice: 316-858-3000
Director of Network Operations Fax: 316-858-3001
Hubris Communications http://www.hubris.net

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Developer and Administrator training is coming to LA, DC and Frankfurt
this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

Message: 6
Date: Tue, 4 May 2004 02:43:31 -0400
From: Jesse Vincent jesse@bestpractical.com
Subject: Re: [rt-users] Performance issues with reply
To: Senoner Samuel Samuel.Senoner@eurac.edu
Cc: rt-users@lists.bestpractical.com
Message-ID: 20040504064331.GU25274@pallas.eruditorum.org
Content-Type: text/plain; charset=us-ascii

Is it somehow possible to have access through web to the repository?
It was very usefull to see what changes are between the versions.

Unfortunately, all of the available web interfaces to subversion appear
to corrupt our repository with frightening regularity. You can access
the repository using anonymous subversion to

svn://svn.bestpractical.com/rt/

Thanks

SAmuel

-----Original Message-----
From: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: Monday,03 May,2004 19:05
To: Steven Saner
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Performance issues with reply

You don’t say whether you’re using MySQL or Postgres. But 3.0.11
includes a pretty serious performance fix for Elements/SelectOwner.
I bet that will solve your problem.

We are using Postgres 7.4.2. Are you recommending 3.0.11? I don’t see
that anywhere. Did you mean 3.1.11?

Nope, I mean the next release of 3.0, which is due out soon.

Steve

Steven Saner ssaner@hubris.net Voice:
316-858-3000
Director of Network Operations Fax:
316-858-3001
Hubris Communications
http://www.hubris.net


The rt-users Archives

RT Developer and Administrator training is coming to LA, DC and Frankfurt
this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

Message: 7
Date: Tue, 4 May 2004 10:42:01 -0400 (EDT)
From: “Chen Chang” chen@glasstrinkets.com
Subject: [rt-users] rt2-to-rt3 1.23 Problem: “Couldn’t create
attachment”
To: rt-devel@lists.fsck.com, rt-users@lists.fsck.com
Message-ID:
1036.192.168.50.13.1083681721.squirrel@webmail.glasstrinkets.com
Content-Type: text/plain; charset=iso-8859-1

Hi everyone,

Trying to migrate from rt-2.0.14 on RedHat 7.2 to rt-3.0.10 on Suse 9.0 Pro.

I am using rt2-to-rt3 1.23. The export from rt2 using rt-2.0-to_dumpfile
was successful. However, I am experiencing problems importing into rt3
using dumpfile-to-rt3.0. Specifically, it appears the the import is
having problems with binary attachments such as MS Word documents which
were attached to tickets in rt2.
I’ve seen a couple other posts with the same problem but didn’t see any
solutions posted in response. On the rt3 installation, I have
perl-5.8.1-46, postgresql 7.3.4 installed.
I am getting the following crash output:

Couldn’t create attachment
$VAR1 = {
‘Creator’ => ‘4’,
‘id’ => ‘2960’,
‘Subject’ => ‘’,
‘Created’ => ‘2004-01-15 19:42:47+00’,
‘ContentType’ => ‘application/msword’,
‘Headers’ => 'Content-Type: application/msword;
name="20030115_cgc_cover_letter.doc"Content-Disposition: inline;
filename=“20030115_cgc_cover_letter.doc”
Content-Transfer-Encoding: base64
',
‘Filename’ => ‘20030115_cgc_cover_letter.doc’,
‘ContentEncoding’ => ‘base64’,
‘Parent’ => ‘2958’,
‘TransactionId’ => ‘4468’
};

ERROR: parser: unterminated quoted string at or near “'ÐÏࡱᔠat
character 146[Tue May 4 09:49:42 2004] [crit]: Died at
…/dumpfile-to-rt-3.0 line 714. (/opt/rt3/lib/RT.pm:254)
./dumpfile-to-rt-3.0 line 714. (/opt/rt3/lib/RT.pm:254)

Any help would be greatly appreciated.

Thanks in advance,
Chen

Message: 8
Date: Tue, 4 May 2004 11:04:09 -0400
From: Charlie Benatti curly@yellowbrix.com
Subject: [rt-users] Ticket Extraction not working in RTFM
To: RT Users rt-users@lists.fsck.com
Message-ID: 20040504150408.GL1609@royal.phuct.net
Content-Type: text/plain; charset=us-ascii

I’ve set up RTFM-2.0.3, along side of RT 3.0.10. I’ve set up a basic
class in RTFM, with two Custom Fields, a TextSingle, and a
WikiTextSingle. Any time I click on Extract Article in RT, and select
some rows to be added to the article from the ticket history, in either
Custom Field, the article is created with no information in the ticket.
Any quick answers to this problem?

Thanks.

-curly

Charlie Benatti
Systems Architect * YellowBrix, Inc.
curly@yellowbrix.com, 703.519.1050

RT-Users mailing list
RT-Users@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

End of RT-Users Digest, Vol 2, Issue 7