Skip to content

Commit

Permalink
Add missing addHeaderOb().
Browse files Browse the repository at this point in the history
Used in Whups for example.
  • Loading branch information
yunosh committed Nov 18, 2014
1 parent 2691fc5 commit f3f63eb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions framework/Mime/lib/Horde/Mime/Mail.php
Expand Up @@ -180,6 +180,20 @@ public function addHeader($header, $value, $overwrite = null)
}
}

/**
* Add a Horde_Mime_Headers_Element object to the current header list.
*
* @since 2.5.0
*
* @param Horde_Mime_Headers_Element $ob Header object to add.
*
* @throws InvalidArgumentException
*/
public function addHeaderOb(Horde_Mime_Headers_Element $ob)
{
$this->_headers->addHeaderOb($ob, true);
}

/**
* Removes a message header.
*
Expand Down

0 comments on commit f3f63eb

Please sign in to comment.