File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
9
9
-NaN
10
10
11
11
### Added
12
- -NaN
12
+ - Search for messages by message id
13
13
14
14
### Affected Classes
15
- -NaN
15
+ - [ Query::class ] ( src/Query/Query.php )
16
16
17
17
### Breaking changes
18
18
-NaN
Original file line number Diff line number Diff line change @@ -413,6 +413,29 @@ public function whereIsXSpam(){
413
413
return $ this ->where ("CUSTOM X-Spam-Flag YES " );
414
414
}
415
415
416
+ /**
417
+ * Search for a specific header value
418
+ * @param $header
419
+ * @param $value
420
+ *
421
+ * @return WhereQuery
422
+ * @throws InvalidWhereQueryCriteriaException
423
+ */
424
+ public function whereHeader ($ header , $ value ){
425
+ return $ this ->where ("CUSTOM HEADER $ header $ value " );
426
+ }
427
+
428
+ /**
429
+ * Search for a specific message id
430
+ * @param $messageId
431
+ *
432
+ * @return WhereQuery
433
+ * @throws InvalidWhereQueryCriteriaException
434
+ */
435
+ public function whereMessageId ($ messageId ){
436
+ return $ this ->whereHeader ("Message-ID " , $ messageId );
437
+ }
438
+
416
439
/**
417
440
* @param $country_code
418
441
*
You can’t perform that action at this time.
0 commit comments