Skip Menu |

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

Report information
The Basics
Id: 1977
Status: new
Priority: 0/
Queue: Mail-Miner

People
Owner: Nobody in particular
Requestors: mailminer [...] aaronland.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.3
Fixed in: (no value)



Subject: Mail::Miner::Assets - storing empty assets
It can happen that assets with no string value get stored in the 'assets' database. If this is the case then the regular expression in ::Mail.pm (line 116) that tests $term will print warnings to the effect that there's nothing to apply a regex(p) to. The following change to Assets.pm (line 33) seems to fix the immediate problem although I suppose a better solution would be to figure out why $_ doesn't have an asset. store => sub { $obj->add_to_assets($_) for grep { $_->{asset} } @_; }