Subject: | Dies horribly on parts_set( [] ) |
The ->parts_set method assumes there will always be at least one part, and does the following
Email::MIME::parts_set(/usr/local/share/perl/5.8.4/Email/MIME/Modifier.pm:244):
$body .= $parts->[0]->body;
When you just did ->parts_set([]) (which was the result of something filtered down from higher up) it dies badly.
parts_set should either handle no parts in the way you would expect, or fail in some more useful way.