Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 3737-3744 (lines=8) @@
3734
					$success = false;
3735
					try
3736
					{
3737
						if(($newFolderName = $this->mail_bo->renameFolder($folderName, $parentFolder, $_newName)))
3738
						{
3739
							$this->mail_bo->resetFolderObjectCache($profileID);
3740
							//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
3741
							$this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
3742
							$this->mail_bo->icServer->subscribeMailbox($folderName, false);
3743
							$success = true;
3744
						}
3745
					}
3746
					catch (Exception $e)
3747
					{
@@ 3970-3978 (lines=9) @@
3967
					$success = false;
3968
					try
3969
					{
3970
						if(($newFolderName = $this->mail_bo->renameFolder($folderName, $parentFolder, $_newName)))
3971
						{
3972
							$this->mail_bo->resetFolderObjectCache($profileID);
3973
							//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
3974
							$this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
3975
							$this->mail_bo->icServer->subscribeMailbox($folderName, false);
3976
							$this->mail_bo->resetFolderObjectCache($profileID);
3977
							$success = true;
3978
						}
3979
					}
3980
					catch (Exception $e)
3981
					{