Code Duplication    Length = 4-5 lines in 2 locations

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

@@ 2672-2675 (lines=4) @@
2669
		$p = $getParams((is_array($ids)?$ids[0]:$ids));
2670
		if ($p['is_winmail'])
2671
		{
2672
			if ($p['icServer'] && $p['icServer'] != $this->mail_bo->profileID)
2673
			{
2674
				$this->changeProfile($p['icServer']);
2675
			}
2676
			$this->mail_bo->reopen($p['mailbox']);
2677
			// Retrive all embedded attachments at once
2678
			// avoids to fetch heavy winmail.dat content
@@ 2688-2692 (lines=5) @@
2685
			$params = $getParams($id);
2686
			// when downloading a single file, name is not set
2687
			if (!$params['name']&&isset($_GET['name'])&&!$isMultipleDownload) $params['name'] = $_GET['name'];
2688
			if ($params['icServer'] && $params['icServer'] != $this->mail_bo->profileID)
2689
			{
2690
				//error_log(__METHOD__.__LINE__.' change Profile to ->'.$icServerID);
2691
				$this->changeProfile($params['icServer']);
2692
			}
2693
			//error_log(__METHOD__.__LINE__.array2string($hA));
2694
			$this->mail_bo->reopen($params['mailbox']);
2695
			if ($params['is_winmail'])