* Detects HTML mail if the entity id is 1.2
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 20 Apr 2001 14:32:18 +0000 (14:32 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 20 Apr 2001 14:32:18 +0000 (14:32 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1270 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index 5958d90c082ffa82874230e012e655f17f32a9d5..daae91b7ee7ae5fe09ca971bb93fc34e1b09b145 100644 (file)
               $textOnly == 0 &&
               $next->header->type0 == "text" &&
               $next->header->type1 == "html" &&
-              $next->header->entity_id == 2 &&
+              ($next->header->entity_id == 2 || 
+               $next->header->entity_id == 1.2) &&
               $message->header->type1 == "plain" &&
               isset($show_html_default) &&
               $show_html_default)
             translateText($body, $wrap_at, $body_message->header->charset);
          }   
    
-         $body .= "<SMALL><CENTER><A HREF=\"../src/download.php?absolute_dl=true&passed_id=$id&passed_ent_id=$ent_num&mailbox=$urlmailbox\">". _("Download this as a file") ."</A></CENTER><BR></SMALL>";
+         $body .= "<SMALL><CENTER><A HREF=\"../src/download.php?absolute_dl=true&passed_id=$id&passed_ent_id=$ent_num&mailbox=$urlmailbox&showHeaders=1\">". _("Download this as a file") ."</A></CENTER><BR></SMALL>";
    
          /** Display the ATTACHMENTS: message if there's more than one part **/
          $body .= "</TD></TR></TABLE>";