Code Duplication    Length = 4-4 lines in 5 locations

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

@@ 1640-1643 (lines=4) @@
1637
				case 'read':
1638
					$actionsenabled[$act]= $actions['mark']['children'][$act];
1639
					break;
1640
				case 'label1':
1641
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('important');
1642
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1643
					break;
1644
				case 'label2':
1645
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('job');
1646
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1644-1647 (lines=4) @@
1641
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('important');
1642
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1643
					break;
1644
				case 'label2':
1645
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('job');
1646
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1647
					break;
1648
				case 'label3':
1649
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('personal');
1650
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1648-1651 (lines=4) @@
1645
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('job');
1646
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1647
					break;
1648
				case 'label3':
1649
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('personal');
1650
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1651
					break;
1652
				case 'label4':
1653
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('to do');
1654
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1652-1655 (lines=4) @@
1649
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('personal');
1650
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1651
					break;
1652
				case 'label4':
1653
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('to do');
1654
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1655
					break;
1656
				case 'label5':
1657
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('later');
1658
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1656-1659 (lines=4) @@
1653
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('to do');
1654
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1655
					break;
1656
				case 'label5':
1657
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('later');
1658
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1659
					break;
1660
				default:
1661
					if (isset($actions[$act])) $actionsenabled[$act]=$actions[$act];
1662
			}