| @@ 498-506 (lines=9) @@ | ||
| 495 | * get a list of messages with number and size |
|
| 496 | * @param int $uid number of message |
|
| 497 | */ |
|
| 498 | public function getSize($cb, $uid = null) |
|
| 499 | { |
|
| 500 | $this->onResponse->push($cb); |
|
| 501 | if ($uid) { |
|
| 502 | $this->fetch('RFC822.SIZE', $uid, null, true, self::TAG_SIZE); |
|
| 503 | } else { |
|
| 504 | $this->fetch('RFC822.SIZE', 1, INF, true, self::TAG_SIZE); |
|
| 505 | } |
|
| 506 | } |
|
| 507 | ||
| 508 | /** |
|
| 509 | * Fetch a message |
|
| @@ 544-552 (lines=9) @@ | ||
| 541 | * |
|
| 542 | * @param int|null $id message number |
|
| 543 | */ |
|
| 544 | public function getUniqueId($cb, $id = null) |
|
| 545 | { |
|
| 546 | $this->onResponse->push($cb); |
|
| 547 | if ($id) { |
|
| 548 | $this->fetch('UID', $id, null, false, self::TAG_GETUID); |
|
| 549 | } else { |
|
| 550 | $this->fetch('UID', 1, INF, false, self::TAG_GETUID); |
|
| 551 | } |
|
| 552 | } |
|
| 553 | ||
| 554 | /** |
|
| 555 | * create a new folder (and parent folders if needed) |
|