summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-04-08 13:22:26 +0000
committerthomascube <thomas@roundcube.net>2007-04-08 13:22:26 +0000
commitfd39346d9f9b49790a5100060a2e32a06f4a884b (patch)
treee4f83629891a0bc4b7f1d825f7c023c3b3121a38 /program
parentd70ddea08caef202be16a3e399564d5080fc6b5c (diff)
List attachments without filename
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/func.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 37c1e1e19..a0bdf0995 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -996,8 +996,12 @@ function rcmail_parse_message(&$structure, $arg=array(), $recursive=FALSE)
$sa_inline_objects[] = $mail_part;
}
// is regular attachment
- else if ($mail_part->filename)
+ else
+ {
+ if (!$mail_part->filename)
+ $mail_part->filename = 'file_'.$mail_part->mime_id;
$a_attachments[] = $mail_part;
+ }
}
}