Skip to content
Snippets Groups Projects
Commit 7f018825 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix missing 2nd param to ::lookupByMessageId

parent c1bec92b
No related branches found
No related tags found
No related merge requests found
...@@ -891,8 +891,9 @@ Class ThreadEntry { ...@@ -891,8 +891,9 @@ Class ThreadEntry {
// Search for the message-id token in the body // Search for the message-id token in the body
if (preg_match('`(?:data-mid="|Ref-Mid: )([^"\s]*)(?:$|")`', if (preg_match('`(?:data-mid="|Ref-Mid: )([^"\s]*)(?:$|")`',
$mailinfo['message'], $match)) $mailinfo['message'], $match))
if ($thread = ThreadEntry::lookupByMessageId($match[1])) if ($thread = ThreadEntry::lookupByRefMessageId($match[1],
return $thread; $mailinfo['email']))
return $thread;
return null; return null;
} }
...@@ -901,7 +902,7 @@ Class ThreadEntry { ...@@ -901,7 +902,7 @@ Class ThreadEntry {
* Find a thread entry from a message-id created from the * Find a thread entry from a message-id created from the
* ::asMessageId() method * ::asMessageId() method
*/ */
function lookupByMessageId($mid, $from) { function lookupByRefMessageId($mid, $from) {
$mid = trim($mid, '<>'); $mid = trim($mid, '<>');
list($ver, $ids, $mails) = explode('$', $mid, 3); list($ver, $ids, $mails) = explode('$', $mid, 3);
...@@ -923,8 +924,8 @@ Class ThreadEntry { ...@@ -923,8 +924,8 @@ Class ThreadEntry {
/** /**
* Get an email message-id that can be used to represent this thread * Get an email message-id that can be used to represent this thread
* entry. The same message-id can be passed to ::lookupByMessageId() to * entry. The same message-id can be passed to ::lookupByRefMessageId()
* find this thread entry * to find this thread entry
* *
* Formats: * Formats:
* Initial (version <null>) * Initial (version <null>)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment