[Web] Update libs
[Web] Update filename when downloading
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
[](https://packagist.org/packages/ddeboer/imap)
|
||||
[](https://packagist.org/packages/ddeboer/imap)
|
||||
|
||||
A PHP 7.1+ library to read and process e-mails over IMAP.
|
||||
A PHP 7.2+ library to read and process e-mails over IMAP.
|
||||
|
||||
This library requires [IMAP](https://secure.php.net/manual/en/book.imap.php),
|
||||
[iconv](https://secure.php.net/manual/en/book.iconv.php) and
|
||||
@@ -159,10 +159,10 @@ function:
|
||||
|
||||
```php
|
||||
$today = new DateTimeImmutable();
|
||||
$lastMonth = $today->sub(new DateInterval('P30D'));
|
||||
$thirtyDaysAgo = $today->sub(new DateInterval('P30D'));
|
||||
|
||||
$messages = $mailbox->getMessages(
|
||||
new Ddeboer\Imap\Search\Date\Since($lastMonth),
|
||||
new Ddeboer\Imap\Search\Date\Since($thirtyDaysAgo),
|
||||
\SORTDATE, // Sort criteria
|
||||
true // Descending order
|
||||
);
|
||||
|
Reference in New Issue
Block a user