[rt-users] Sudden problem : Can't use an undefined value as an ARRAY EmailParser.pm

Lawrence McAbee lcm at mcabee.org
Wed Jul 2 09:07:25 EDT 2008


I've never had this problem, but assuming your  
[/usr/local/rt/lib/RT/EmailParser.pm:626 is:

sub DESTROY {
     my $self = shift;
     File::Path::rmtree([@{$self->{'AttachmentDirs'}}],0,1);
}

Assuming the email you are passing through is valid and has  
attachments, AttachmentDirs should have been set in _SetupMIMEParser.  
I would do two things:

1) Make sure the user running mailgate does not have permission issues  
in /tmp.
2) Put some comments around the code in _SetupMIMEParser and see is  
tmpdir is being set, what is it being set to, and if AttachementDirs  
is being pushed in properly.



Quoting Neil Marjoram <n.marjoram at adastral.ucl.ac.uk>:

> Suddenly at 8am this morning my RT 3.6.6 has stopped accepting email
> requests. I have  checked for any updates to perl etc but have found
> nothing, debug output shows :
>
> cat /usr/bin/test |/etc/smrsh/rt-mailgate --queue itsupport --action
> correspond --url http://rt.adastral.ucl.ac.uk/ --debug
>
> Connecting to http://rt.adastral.ucl.ac.uk//REST/1.0/NoAuth/mail-gateway
> at /etc/smrsh/rt-mailgate line 102, <> line 1.
>
> Can't use an undefined value as an ARRAY reference at
> /usr/local/rt/lib/RT/EmailParser.pm line 626.
>
> Stack:
>    [/usr/local/rt/lib/RT/EmailParser.pm:626]
>    [/usr/lib/perl5/5.8.8/Carp.pm:269]
> RT server error.
>
> The RT server which handled your email did not behave as expected. It
> said:
>
> Can't use an undefined value as an ARRAY reference at
> /usr/local/rt/lib/RT/EmailParser.pm line 626.
>
> Stack:
>    [/usr/local/rt/lib/RT/EmailParser.pm:626]
>    [/usr/lib/perl5/5.8.8/Carp.pm:269]
>
> I have looked to see if there are any changes in sendmail, smrsh etc but
> again found nothing. Can anyone help me with this?
>
> Many thanks,
>
> Neil.
>
> --
> Neil Marjoram
> Systems Manager
> Adastral Park Campus
> University College London
> Ross Building
> Adastral Park
> Martlesham Heath
> Ipswich - Suffolk
> IP5 3RE
>
> Tel: 01473 663711
> Fax: 01473 635199
>
>
> Reclaim Your Inbox!
> http://www.mozilla.org/products/thunderbird
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
>



-- 
Lawrence McAbee
X-PGP-Fingerprint: 1605 D207 E39D 4D7E 79C4 D65D 3EBC 365E BFA8 CC17


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: PGP Digital Signature
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20080702/b82a20ea/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1708 bytes
Desc: PGP Public Key
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20080702/b82a20ea/attachment.key>


More information about the rt-users mailing list