]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 190521 - If the attachment didn't have a Content-Description: header in the e...
authorjake%bugzilla.org <>
Sat, 25 Jan 2003 12:39:14 +0000 (12:39 +0000)
committerjake%bugzilla.org <>
Sat, 25 Jan 2003 12:39:14 +0000 (12:39 +0000)
r=jake
a=justdave

contrib/bug_email.pl

index bf442502c3c484f6db384a8830da524357e95f17..b30b1c046259ab055fe9c623af6e0cec2ad25187 100755 (executable)
@@ -37,7 +37,7 @@
 #
 # You need to work with bug_email.pl the MIME::Parser installed.
 # 
-# $Id: bug_email.pl,v 1.14 2002/09/22 17:15:03 bugreport%peshkin.net Exp $
+# $Id: bug_email.pl,v 1.15 2003/01/25 04:39:14 jake%bugzilla.org Exp $
 ###############################################################
 
 # 02/12/2000 (SML)
@@ -640,7 +640,8 @@ sub dump_entity {
        if(  $msg_part =~ /^attachment/ ) {
            # Attached File
            my $des = $entity->head->get('Content-Description');
-           $des ||= "";
+           $des ||= $entity->head->recommended_filename;
+           $des ||= "unnamed attachment";
 
            if( defined( $body->path )) { # Data is on disk
                $on_disk = 1;