X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fmimepart.inc.php;fp=banana%2Fmimepart.inc.php;h=032ae4d74665bd9568cafafd914bf9c29f900a04;hb=8f75dae9e468affb656033b6076645a16b861865;hp=28281e9f056a68744c45f9a7eab8aa7dde183945;hpb=16800641247adf482c6a8bc3b60707eac2bfe345;p=banana.git diff --git a/banana/mimepart.inc.php b/banana/mimepart.inc.php index 28281e9..032ae4d 100644 --- a/banana/mimepart.inc.php +++ b/banana/mimepart.inc.php @@ -183,6 +183,10 @@ class BananaMimePart } } list($type, $subtype) = explode('/', $content_type); + if ($disposition == 'attachment') { + $this->makeDataPart($content, $content_type, $encoding, $filename, $disposition, $id); + return; + } switch ($type) { case 'text': case 'message': $this->makeTextPart($content, $content_type, $encoding, $charset, $format);