diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-04-08 13:22:26 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-04-08 13:22:26 +0000 |
| commit | c0c03f6f8496e6bc16f8c4e6225b5e612522ab80 (patch) | |
| tree | ab2a7aa23a71389a13248e5b16edd0a6e42169d4 /roundcubemail/program | |
| parent | d21ddd2f3ef08ce2a1331293eef78df79c50e532 (diff) | |
List attachments without filename
git-svn-id: https://svn.roundcube.net/trunk@540 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 37c1e1e19..a0bdf0995 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/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; + } } } |
