Code Duplication    Length = 4-4 lines in 5 locations

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

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