Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 3878-3885 (lines=8) @@
3875
					$success = false;
3876
					try
3877
					{
3878
						if(($newFolderName = $this->mail_bo->renameFolder($folderName, $parentFolder, $_newName)))
3879
						{
3880
							$this->mail_bo->resetFolderObjectCache($profileID);
3881
							//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
3882
							$this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
3883
							$this->mail_bo->icServer->subscribeMailbox($folderName, false);
3884
							$success = true;
3885
						}
3886
					}
3887
					catch (Exception $e)
3888
					{
@@ 4107-4115 (lines=9) @@
4104
					$success = false;
4105
					try
4106
					{
4107
						if(($newFolderName = $this->mail_bo->renameFolder($folderName, $parentFolder, $_newName)))
4108
						{
4109
							$this->mail_bo->resetFolderObjectCache($profileID);
4110
							//enforce the subscription to the newly named server, as it seems to fail for names with umlauts
4111
							$this->mail_bo->icServer->subscribeMailbox($newFolderName, true);
4112
							$this->mail_bo->icServer->subscribeMailbox($folderName, false);
4113
							$this->mail_bo->resetFolderObjectCache($profileID);
4114
							$success = true;
4115
						}
4116
					}
4117
					catch (Exception $e)
4118
					{