Open todd-richmond opened 2 hours ago
proposed solution
diff Multipart.pm.org Multipart.pm
448,449c448,449
< { my $boundary = $mime->attribute('boundary');
< return $boundary if defined $boundary;
---
> { my @boundary = $mime->attributes('boundary');
> return $boundary[-1] if $#boundary != -1;
A serious issue has been discovered that if you supply multiple boundaries, Mail::Message will only parse content from the 1st boundary, but Apple Mail will parse the last boundary. That causes us to skip processing parts that the end-user sees in their mail client. I think the simplest fix is to always use the last boundary so that any content before that is considered prologue and ignored
Note that $field->attribute('boundary, '2') will only change the 1st boundary and not any subsequent boundaries if > 1 attribute