Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 3747-3754 (lines=8) @@
3744
					$success = false;
3745
					try
3746
					{
3747
						if(($newFolderName = $this->mail_bo->renameFolder($folderName, $parentFolder, $_newName)))
3748
						{
3749
							$this->mail_bo->resetFolderObjectCache($profileID);
3750
							//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
3751
							$this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
3752
							$this->mail_bo->icServer->subscribeMailbox($folderName, false);
3753
							$success = true;
3754
						}
3755
					}
3756
					catch (Exception $e)
3757
					{
@@ 3980-3988 (lines=9) @@
3977
					$success = false;
3978
					try
3979
					{
3980
						if(($newFolderName = $this->mail_bo->renameFolder($folderName, $parentFolder, $_newName)))
3981
						{
3982
							$this->mail_bo->resetFolderObjectCache($profileID);
3983
							//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
3984
							$this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
3985
							$this->mail_bo->icServer->subscribeMailbox($folderName, false);
3986
							$this->mail_bo->resetFolderObjectCache($profileID);
3987
							$success = true;
3988
						}
3989
					}
3990
					catch (Exception $e)
3991
					{