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} } @_; }