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
					{
@@ 3996-4004 (lines=9) @@
3993
					$success = false;
3994
					try
3995
					{
3996
						if(($newFolderName = $this->mail_bo->renameFolder($folderName, $parentFolder, $_newName)))
3997
						{
3998
							$this->mail_bo->resetFolderObjectCache($profileID);
3999
							//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
4000
							$this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
4001
							$this->mail_bo->icServer->subscribeMailbox($folderName, false);
4002
							$this->mail_bo->resetFolderObjectCache($profileID);
4003
							$success = true;
4004
						}
4005
					}
4006
					catch (Exception $e)
4007
					{