From 6d5dbae53cd4b4b97da0b0c558292a7f1062a524 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 25 Jul 2008 11:13:15 -0400
Subject: [PATCH] Prefer File_Info over mime_content_type + detect mime type when uploading + some code style

---
 program/steps/mail/sendmail.inc |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index babde48..75000d4 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -284,12 +284,7 @@
     }
     else
     {
-      /*
-        We need to replace mime_content_type in a later release because the function
-        is deprecated in favour of File_Info
-      */
-      $ctype = rc_mime_content_type($attachment['path'], $attachment['mimetype']);
-      $ctype = str_replace('image/pjpeg', 'image/jpeg', $ctype); // #1484914
+      $ctype = str_replace('image/pjpeg', 'image/jpeg', $attachment['mimetype']); // #1484914
 
       // .eml attachments send inline
       $MAIL_MIME->addAttachment($attachment['path'],

--
Gitblit v1.9.1