summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorjake%bugzilla.org <>2003-01-25 13:39:14 +0100
committerjake%bugzilla.org <>2003-01-25 13:39:14 +0100
commit4753a099436a5bd20adecfbb78478093c43f88b5 (patch)
tree261fe4de2e400fc106bb7a0716df2cab3602623c /contrib
parente7282d675f4d0080a34d1765b31b806c8ce1140b (diff)
downloadbugzilla-4753a099436a5bd20adecfbb78478093c43f88b5.tar.gz
bugzilla-4753a099436a5bd20adecfbb78478093c43f88b5.tar.xz
Bug 190521 - If the attachment didn't have a Content-Description: header in the e-mail, it ended up not having a description in Bugzilla leaving nothing to click on in the Attachment table on the bug form.
r=jake a=justdave
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/bug_email.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/bug_email.pl b/contrib/bug_email.pl
index bf442502c..b30b1c046 100755
--- a/contrib/bug_email.pl
+++ b/contrib/bug_email.pl
@@ -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;