Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
&& isset($_SESSION['banana_message'])) {
$message = unserialize($_SESSION['banana_message']);
Banana::$msgshow_headers = $_SESSION['banana_showhdr'];
- } else {
+ } else {
$message = Banana::$protocole->getMessage($artid);
$_SESSION['banana_group'] = $group;
$_SESSION['banana_artid'] = $artid;
}
}
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);