Code Duplication    Length = 8-8 lines in 3 locations

lib/model/imapmessage.php 3 locations

@@ 236-243 (lines=8) @@
233
	/**
234
	 * @return array
235
	 */
236
	public function getToList($assoc = false) {
237
		$e = $this->getEnvelope();
238
		if ($assoc) {
239
			return $this->convertAddressList($e->to);
240
		} else {
241
			return $this->hordeListToStringArray($e->to);
242
		}
243
	}
244
245
	public function getCCList($assoc = false) {
246
		$e = $this->getEnvelope();
@@ 245-252 (lines=8) @@
242
		}
243
	}
244
245
	public function getCCList($assoc = false) {
246
		$e = $this->getEnvelope();
247
		if ($assoc) {
248
			return $this->convertAddressList($e->cc);
249
		} else {
250
			return $this->hordeListToStringArray($e->cc);
251
		}
252
	}
253
254
	public function setCC(Horde_Mail_Rfc822_List $cc) {
255
		throw new Exception('IMAP message is immutable');
@@ 258-265 (lines=8) @@
255
		throw new Exception('IMAP message is immutable');
256
	}
257
258
	public function getBCCList($assoc = false) {
259
		$e = $this->getEnvelope();
260
		if ($assoc) {
261
			return $this->convertAddressList($e->bcc);
262
		} else {
263
			return $this->hordeListToStringArray($e->bcc);
264
		}
265
	}
266
267
	public function setBcc(Horde_Mail_Rfc822_List $bcc) {
268
		throw new Exception('IMAP message is immutable');