Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 4117-4125 (lines=9) @@
4114
					$success = false;
4115
					try
4116
					{
4117
						if(($newFolderName = $this->mail_bo->renameFolder($folderName, $parentFolder, $_newName)))
4118
						{
4119
							$this->mail_bo->resetFolderObjectCache($profileID);
4120
							//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
4121
							$this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
4122
							$this->mail_bo->icServer->subscribeMailbox($folderName, false);
4123
							$this->mail_bo->resetFolderObjectCache($profileID);
4124
							$success = true;
4125
						}
4126
					}
4127
					catch (Exception $e)
4128
					{
@@ 3888-3895 (lines=8) @@
3885
					$success = false;
3886
					try
3887
					{
3888
						if(($newFolderName = $this->mail_bo->renameFolder($folderName, $parentFolder, $_newName)))
3889
						{
3890
							$this->mail_bo->resetFolderObjectCache($profileID);
3891
							//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
3892
							$this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
3893
							$this->mail_bo->icServer->subscribeMailbox($folderName, false);
3894
							$success = true;
3895
						}
3896
					}
3897
					catch (Exception $e)
3898
					{