Code Duplication    Length = 4-5 lines in 2 locations

mail/inc/class.mail_ui.inc.php 2 locations

@@ 2692-2695 (lines=4) @@
2689
		$p = $getParams((is_array($ids)?$ids[0]:$ids));
2690
		if ($p['is_winmail'])
2691
		{
2692
			if ($p['icServer'] && $p['icServer'] != $this->mail_bo->profileID)
2693
			{
2694
				$this->changeProfile($p['icServer']);
2695
			}
2696
			$this->mail_bo->reopen($p['mailbox']);
2697
			// Retrive all embedded attachments at once
2698
			// avoids to fetch heavy winmail.dat content
@@ 2708-2712 (lines=5) @@
2705
			$params = $getParams($id);
2706
			// when downloading a single file, name is not set
2707
			if (!$params['name']&&isset($_GET['name'])&&!$isMultipleDownload) $params['name'] = $_GET['name'];
2708
			if ($params['icServer'] && $params['icServer'] != $this->mail_bo->profileID)
2709
			{
2710
				//error_log(__METHOD__.__LINE__.' change Profile to ->'.$icServerID);
2711
				$this->changeProfile($params['icServer']);
2712
			}
2713
			//error_log(__METHOD__.__LINE__.array2string($hA));
2714
			$this->mail_bo->reopen($params['mailbox']);
2715
			if ($params['is_winmail'])