From f8d0a5cb18456756cfe08626b851aaaa4953faa3 Mon Sep 17 00:00:00 2001
From: svncommit <devs@roundcube.net>
Date: Wed, 26 Apr 2006 17:49:38 -0400
Subject: [PATCH] Corrected issue forwarding attachments that use content-description rather than filename or name disposition headers

---
 program/steps/mail/compose.inc |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 5969e05..d278279 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -414,6 +414,11 @@
 	    $_SESSION['compose']['attachments'][] = array('name' => $part->ctype_parameters['name'],
                                                           'mimetype' => $part->ctype_primary . '/' . $part->ctype_secondary,
                                                           'path' => $tmp_path);
+							  
+          else if ($part->headers['content-description'])
+	    $_SESSION['compose']['attachments'][] = array('name' => $part->headers['content-description'],
+                                                          'mimetype' => $part->ctype_primary . '/' . $part->ctype_secondary,
+                                                          'path' => $tmp_path);
           }
 	}
       }

--
Gitblit v1.9.1