Code Duplication    Length = 4-4 lines in 5 locations

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

@@ 1751-1754 (lines=4) @@
1748
				case 'read':
1749
					$actionsenabled[$act]= $actions['mark']['children'][$act];
1750
					break;
1751
				case 'label1':
1752
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('important');
1753
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1754
					break;
1755
				case 'label2':
1756
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('job');
1757
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1755-1758 (lines=4) @@
1752
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('important');
1753
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1754
					break;
1755
				case 'label2':
1756
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('job');
1757
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1758
					break;
1759
				case 'label3':
1760
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('personal');
1761
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1759-1762 (lines=4) @@
1756
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('job');
1757
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1758
					break;
1759
				case 'label3':
1760
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('personal');
1761
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1762
					break;
1763
				case 'label4':
1764
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('to do');
1765
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1763-1766 (lines=4) @@
1760
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('personal');
1761
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1762
					break;
1763
				case 'label4':
1764
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('to do');
1765
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1766
					break;
1767
				case 'label5':
1768
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('later');
1769
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1767-1770 (lines=4) @@
1764
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('to do');
1765
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1766
					break;
1767
				case 'label5':
1768
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('later');
1769
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1770
					break;
1771
				case 'ham':
1772
				case 'spam':
1773
					$actionsenabled[$act]= $actions['spamfilter']['children'][$act];