We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 230d73a commit 6765ab0Copy full SHA for 6765ab0
1 file changed
Bugzilla/BugMail.pm
@@ -495,10 +495,10 @@ sub _generate_bugmail {
495
}
496
497
my $email = Bugzilla::MIME->new($msg_header);
498
- if (scalar(@parts) == 1) {
499
- $email->content_type_set($parts[0]->content_type);
500
- }
501
- else {
+
+ # If there's only one part, we don't need to set the overall content type
+ # because Email::MIME will automatically take it from that part (bug 1657496)
+ if (scalar(@parts) > 1) {
502
$email->content_type_set('multipart/alternative');
503
504
# Some mail clients need same encoding for each part, even empty ones.
0 commit comments