Code Duplication    Length = 4-4 lines in 5 locations

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

@@ 1761-1764 (lines=4) @@
1758
				case 'read':
1759
					$actionsenabled[$act]= $actions['mark']['children'][$act];
1760
					break;
1761
				case 'label1':
1762
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('important');
1763
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1764
					break;
1765
				case 'label2':
1766
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('job');
1767
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1765-1768 (lines=4) @@
1762
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('important');
1763
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1764
					break;
1765
				case 'label2':
1766
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('job');
1767
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1768
					break;
1769
				case 'label3':
1770
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('personal');
1771
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1769-1772 (lines=4) @@
1766
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('job');
1767
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1768
					break;
1769
				case 'label3':
1770
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('personal');
1771
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1772
					break;
1773
				case 'label4':
1774
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('to do');
1775
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1773-1776 (lines=4) @@
1770
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('personal');
1771
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1772
					break;
1773
				case 'label4':
1774
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('to do');
1775
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1776
					break;
1777
				case 'label5':
1778
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('later');
1779
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
@@ 1777-1780 (lines=4) @@
1774
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('to do');
1775
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1776
					break;
1777
				case 'label5':
1778
					$actions['mark']['children']['setLabel']['children'][$act]['caption'] = lang('later');
1779
					$actionsenabled[$act]= $actions['mark']['children']['setLabel']['children'][$act];
1780
					break;
1781
				case 'ham':
1782
				case 'spam':
1783
					$actionsenabled[$act]= $actions['spamfilter']['children'][$act];