Skip to content

Commit deab0ec

Browse files
committed
Search for messages by In-Reply-To
1 parent f96412a commit deab0ec

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
99
-NaN
1010

1111
### Added
12-
- Search for messages by message id
12+
- Search for messages by message-Id
13+
- Search for messages by In-Reply-To
1314

1415
### Affected Classes
1516
- [Query::class](src/Query/Query.php)

src/Query/WhereQuery.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,17 @@ public function whereMessageId($messageId){
436436
return $this->whereHeader("Message-ID", $messageId);
437437
}
438438

439+
/**
440+
* Search for a specific message id
441+
* @param $messageId
442+
*
443+
* @return WhereQuery
444+
* @throws InvalidWhereQueryCriteriaException
445+
*/
446+
public function whereInReplyTo($messageId){
447+
return $this->whereHeader("In-Reply-To", $messageId);
448+
}
449+
439450
/**
440451
* @param $country_code
441452
*

0 commit comments

Comments
 (0)