Code Duplication    Length = 2-3 lines in 3 locations

class/mail_parser.php 3 locations

@@ 503-504 (lines=2) @@
500
				// Some bad mail client didn't set the attach mime right
501
				// Content-Type: application/octet-stream;
502
				//	name="Dave_Nitsche_036.jpg"
503
				if ('.jpg' == strtolower(substr($rs['filename'], strlen($rs['filename']) - 4)))
504
					$rs['type'] = 'image/jpeg';
505
				if ('.gif' == strtolower(substr($rs['filename'], strlen($rs['filename']) - 4)))
506
					$rs['type'] = 'image/gif';
507
				if ('.png' == strtolower(substr($rs['filename'], strlen($rs['filename']) - 4))) {
@@ 505-506 (lines=2) @@
502
				//	name="Dave_Nitsche_036.jpg"
503
				if ('.jpg' == strtolower(substr($rs['filename'], strlen($rs['filename']) - 4)))
504
					$rs['type'] = 'image/jpeg';
505
				if ('.gif' == strtolower(substr($rs['filename'], strlen($rs['filename']) - 4)))
506
					$rs['type'] = 'image/gif';
507
				if ('.png' == strtolower(substr($rs['filename'], strlen($rs['filename']) - 4))) {
508
					$rs['type'] = 'image/png';
509
				}
@@ 507-509 (lines=3) @@
504
					$rs['type'] = 'image/jpeg';
505
				if ('.gif' == strtolower(substr($rs['filename'], strlen($rs['filename']) - 4)))
506
					$rs['type'] = 'image/gif';
507
				if ('.png' == strtolower(substr($rs['filename'], strlen($rs['filename']) - 4))) {
508
					$rs['type'] = 'image/png';
509
				}
510
511
			} else {
512
				// Not an attachment