Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 3763-3770 (lines=8) @@
3760
					$success = false;
3761
					try
3762
					{
3763
						if(($newFolderName = $this->mail_bo->renameFolder($folderName, $parentFolder, $_newName)))
3764
						{
3765
							$this->mail_bo->resetFolderObjectCache($profileID);
3766
							//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
3767
							$this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
3768
							$this->mail_bo->icServer->subscribeMailbox($folderName, false);
3769
							$success = true;
3770
						}
3771
					}
3772
					catch (Exception $e)
3773
					{
@@ 3992-4000 (lines=9) @@
3989
					$success = false;
3990
					try
3991
					{
3992
						if(($newFolderName = $this->mail_bo->renameFolder($folderName, $parentFolder, $_newName)))
3993
						{
3994
							$this->mail_bo->resetFolderObjectCache($profileID);
3995
							//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
3996
							$this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
3997
							$this->mail_bo->icServer->subscribeMailbox($folderName, false);
3998
							$this->mail_bo->resetFolderObjectCache($profileID);
3999
							$success = true;
4000
						}
4001
					}
4002
					catch (Exception $e)
4003
					{