Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mail-LocalDelivery CPAN distribution.

Report information
The Basics
Id: 2236
Status: resolved
Priority: 0/
Queue: Mail-LocalDelivery

People
Owner: Nobody in particular
Requestors: richardc [...] unixbeard.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.1
Fixed in: (no value)



Subject: patch to allow for objects inherited from Mail::Internet
I have some code that would quite like to use Mail::LocalDelivery for things derived from Mail::Internet (we're hanging some extra methods off to the side for convenience). Here's a patch which saves having to do some awful dclone/rebless boilerplate. diff -urb Mail-LocalDelivery-0.1/LocalDelivery.pm Mail-LocalDelivery-0.1~/LocalDelivery.pm --- Mail-LocalDelivery-0.1/LocalDelivery.pm 2002-06-07 14:37:47.000000000 +0100 +++ Mail-LocalDelivery-0.1~/LocalDelivery.pm 2003-03-16 01:10:08.000000000 +0000 @@ -108,7 +108,7 @@ my $self; # What sort of stuff do we have? - if (ref $stuff eq "Mail::Internet" or ref $stuff eq "MIME::Entity"){ + if (UNIVERSAL::isa( $stuff, "Mail::Internet" ) or UNIVERSAL::isa( $stuff, "MIME::Entity" )){ $self = $stuff; } elsif (ref $stuff eq "ARRAY" or ref $stuff eq "GLOB") { $self = new Mail::Internet($stuff);
Mail::LocalDelivery is deprecated in favour of the forthcoming Email::LocalDelivery. I'll finish writing a couple more Email::* modules today and hopefully release them. If you want to take the module over, of course, feel free.