Skip to content

Commit

Permalink
Catch if there is no old References header.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 11, 2014
1 parent 2529996 commit a3a26b2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions imp/lib/Compose.php
Original file line number Diff line number Diff line change
Expand Up @@ -1901,11 +1901,13 @@ public function replyMessage($type, $contents, array $opts = array())
$this->_setMetadata('in_reply_to', reset($msg_id->ids));
}

$ref_ob = $h['References']->getIdentificationOb();
if (!count($ref_ob->ids)) {
$ref_ob = $h['In-Reply-To']->getIdentificationOb();
if (count($ref_ob->ids) > 1) {
$ref_ob->ids = array();
if ($h['References']) {
$ref_ob = $h['References']->getIdentificationOb();
if (!count($ref_ob->ids)) {
$ref_ob = $h['In-Reply-To']->getIdentificationOb();
if (count($ref_ob->ids) > 1) {
$ref_ob->ids = array();
}
}
}

Expand Down

0 comments on commit a3a26b2

Please sign in to comment.