Gracefully recover from over quota error while sending a mail (#1145144):
[squirrelmail.git] / class / mime / ContentType.class.php
CommitLineData
19d470aa 1<?php
2
3/**
4 * ContentType.class.php
5 *
6c84ba1e 6 * Copyright (c) 2003-2005 The SquirrelMail Project Team
19d470aa 7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * This contains functions needed to handle mime messages.
10 *
883d9cd3 11 * @version $Id$
2b646597 12 * @package squirrelmail
19d470aa 13 */
14
2b646597 15/**
16 * Undocumented class
17 * @package squirrelmail
18 */
19d470aa 19class ContentType {
20 var $type0 = 'text',
21 $type1 = 'plain',
22 $properties = '';
23
24 function ContentType($type) {
25 $pos = strpos($type, '/');
26 if ($pos > 0) {
27 $this->type0 = substr($type, 0, $pos);
28 $this->type1 = substr($type, $pos+1);
29 } else {
30 $this->type0 = $type;
31 }
32 $this->properties = array();
33 }
34}
35
8d8da447 36?>