Skip to content

Commit ce1f3d6

Browse files
committed
Add fetch and send to ConnectionInterface
1 parent 7616341 commit ce1f3d6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Connection/ConnectionInterface.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,15 @@ public function bodyPart(string $partIndex, int|array $ids, bool $peek = false):
174174
*/
175175
public function flags(int|array $ids): ResponseCollection;
176176

177+
/**
178+
* Send a "FETCH" command.
179+
*
180+
* Fetch one or more items for one or more messages.
181+
*
182+
* @see https://datatracker.ietf.org/doc/html/rfc9051#name-fetch-command
183+
*/
184+
public function fetch(array|string $items, array|int $from, mixed $to = null, ImapFetchIdentifier $identifier = ImapFetchIdentifier::Uid): ResponseCollection;
185+
177186
/**
178187
* Send a "RFC822.SIZE" command.
179188
*
@@ -183,6 +192,11 @@ public function flags(int|array $ids): ResponseCollection;
183192
*/
184193
public function size(int|array $ids): ResponseCollection;
185194

195+
/**
196+
* Send an IMAP command.
197+
*/
198+
public function send(string $name, array $tokens = [], ?string &$tag = null): void;
199+
186200
/**
187201
* Send a "SELECT" command.
188202
*

0 commit comments

Comments
 (0)