public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/inc/lib/vendor/ddeboer/imap/README.md
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
README.md
on main
Author
Date
Commit
Line
Code
andryyy
over 5 years ago
19843cc
[Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication
- Full commit hash
19843cc786d20e4728ce9cc06caaa8069637f34b- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 1
# PHP IMAP library
# PHP IMAP library
andryyy
over 7 years ago
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 2
andryyy
over 5 years ago
ee6989b
[Web] Update libs
- Full commit hash
ee6989bd1d475d7c555b32d0c123d858f61e2902- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 3
[](https://packagist.org/packages/ddeboer/imap)
[](https://packagist.org/packages/ddeboer/imap)
same change
ee6989b
[Web] Update libs
- Full commit hash
ee6989bd1d475d7c555b32d0c123d858f61e2902- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 4
[](https://packagist.org/packages/ddeboer/imap)
[](https://packagist.org/packages/ddeboer/imap)
same change
ee6989b
[Web] Update libs
- Full commit hash
ee6989bd1d475d7c555b32d0c123d858f61e2902- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 5
[](https://github.com/ddeboer/imap/actions)
[](https://github.com/ddeboer/imap/actions)
same change
ee6989b
[Web] Update libs
- Full commit hash
ee6989bd1d475d7c555b32d0c123d858f61e2902- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 6
[](https://codecov.io/gh/ddeboer/imap?branch=master)
[](https://codecov.io/gh/ddeboer/imap?branch=master)
andryyy
over 7 years ago
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 7
andryyy
over 5 years ago
19843cc
[Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication
- Full commit hash
19843cc786d20e4728ce9cc06caaa8069637f34b- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 8
A PHP IMAP library to read and process e-mails over IMAP protocol, built with robust Object-Oriented architecture.
A PHP IMAP library to read and process e-mails over IMAP protocol, built with robust Object-Oriented architecture.
andryyy
over 7 years ago
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 9
andryyy
over 5 years ago
19843cc
[Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication
- Full commit hash
19843cc786d20e4728ce9cc06caaa8069637f34b- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 10
This library requires PHP >= 7.4 with [IMAP](https://www.php.net/manual/en/book.imap.php),
This library requires PHP >= 7.4 with [IMAP](https://www.php.net/manual/en/book.imap.php),
same change
19843cc
[Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication
- Full commit hash
19843cc786d20e4728ce9cc06caaa8069637f34b- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 11
[iconv](https://www.php.net/manual/en/book.iconv.php) and
[iconv](https://www.php.net/manual/en/book.iconv.php) and
same change
19843cc
[Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication
- Full commit hash
19843cc786d20e4728ce9cc06caaa8069637f34b- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 12
[Multibyte String](https://www.php.net/manual/en/book.mbstring.php) extensions installed.
[Multibyte String](https://www.php.net/manual/en/book.mbstring.php) extensions installed.
andryyy
almost 7 years ago
7a85abd
[Web] Prepare for oauth2
- Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c- Author
- andryyy <[email protected]>
- Date
- almost 7 years ago
- Selected line
- 13
andryyy
over 7 years ago
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 14
## Installation
## Installation
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 15
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 16
The recommended way to install the IMAP library is through [Composer](https://getcomposer.org):
The recommended way to install the IMAP library is through [Composer](https://getcomposer.org):
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 17
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 18
```bash
```bash
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 19
$ composer require ddeboer/imap
$ composer require ddeboer/imap
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 20
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 21
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 22
This command requires you to have Composer installed globally, as explained
This command requires you to have Composer installed globally, as explained
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 23
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 24
of the Composer documentation.
of the Composer documentation.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 25
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 26
## Usage
## Usage
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 27
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 28
### Connect and Authenticate
### Connect and Authenticate
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 29
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 30
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 31
use Ddeboer\Imap\Server;
use Ddeboer\Imap\Server;
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 32
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 33
$server = new Server('imap.gmail.com');
$server = new Server('imap.gmail.com');
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 34
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 35
// $connection is instance of \Ddeboer\Imap\Connection
// $connection is instance of \Ddeboer\Imap\Connection
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 36
$connection = $server->authenticate('my_username', 'my_password');
$connection = $server->authenticate('my_username', 'my_password');
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 37
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 38
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 39
You can specify port, [flags and parameters](https://secure.php.net/manual/en/function.imap-open.php)
You can specify port, [flags and parameters](https://secure.php.net/manual/en/function.imap-open.php)
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 40
to the server:
to the server:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 41
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 42
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 43
$server = new Server(
$server = new Server(
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 44
$hostname, // required
$hostname, // required
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 45
$port, // defaults to '993'
$port, // defaults to '993'
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 46
$flags, // defaults to '/imap/ssl/validate-cert'
$flags, // defaults to '/imap/ssl/validate-cert'
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 47
$parameters
$parameters
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 48
);
);
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 49
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 50
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 51
### Mailboxes
### Mailboxes
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 52
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 53
Retrieve mailboxes (also known as mail folders) from the mail server and iterate
Retrieve mailboxes (also known as mail folders) from the mail server and iterate
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 54
over them:
over them:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 55
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 56
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 57
$mailboxes = $connection->getMailboxes();
$mailboxes = $connection->getMailboxes();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 58
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 59
foreach ($mailboxes as $mailbox) {
foreach ($mailboxes as $mailbox) {
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 60
// Skip container-only mailboxes
// Skip container-only mailboxes
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 61
// @see https://secure.php.net/manual/en/function.imap-getmailboxes.php
// @see https://secure.php.net/manual/en/function.imap-getmailboxes.php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 62
if ($mailbox->getAttributes() & \LATT_NOSELECT) {
if ($mailbox->getAttributes() & \LATT_NOSELECT) {
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 63
continue;
continue;
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 64
}
}
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 65
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 66
// $mailbox is instance of \Ddeboer\Imap\Mailbox
// $mailbox is instance of \Ddeboer\Imap\Mailbox
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 67
printf('Mailbox "%s" has %s messages', $mailbox->getName(), $mailbox->count());
printf('Mailbox "%s" has %s messages', $mailbox->getName(), $mailbox->count());
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 68
}
}
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 69
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 70
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 71
Or retrieve a specific mailbox:
Or retrieve a specific mailbox:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 72
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 73
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 74
$mailbox = $connection->getMailbox('INBOX');
$mailbox = $connection->getMailbox('INBOX');
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 75
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 76
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 77
Delete a mailbox:
Delete a mailbox:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 78
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 79
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 80
$connection->deleteMailbox($mailbox);
$connection->deleteMailbox($mailbox);
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 81
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 82
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 83
You can bulk set, or clear, any [flag](https://secure.php.net/manual/en/function.imap-setflag-full.php) of mailbox messages (by UIDs):
You can bulk set, or clear, any [flag](https://secure.php.net/manual/en/function.imap-setflag-full.php) of mailbox messages (by UIDs):
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 84
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 85
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 86
$mailbox->setFlag('\\Seen \\Flagged', ['1:5', '7', '9']);
$mailbox->setFlag('\\Seen \\Flagged', ['1:5', '7', '9']);
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 87
$mailbox->setFlag('\\Seen', '1,3,5,6:8');
$mailbox->setFlag('\\Seen', '1,3,5,6:8');
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 88
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 89
$mailbox->clearFlag('\\Flagged', '1,3');
$mailbox->clearFlag('\\Flagged', '1,3');
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 90
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 91
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 92
**WARNING** You must retrieve new Message instances in case of bulk modify flags to refresh the single Messages flags.
**WARNING** You must retrieve new Message instances in case of bulk modify flags to refresh the single Messages flags.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 93
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 94
### Messages
### Messages
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 95
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 96
Retrieve messages (e-mails) from a mailbox and iterate over them:
Retrieve messages (e-mails) from a mailbox and iterate over them:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 97
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 98
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 99
$messages = $mailbox->getMessages();
$messages = $mailbox->getMessages();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 100
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 101
foreach ($messages as $message) {
foreach ($messages as $message) {
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 102
// $message is instance of \Ddeboer\Imap\Message
// $message is instance of \Ddeboer\Imap\Message
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 103
}
}
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 104
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 105
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 106
To insert a new message (that just has been sent) into the Sent mailbox and flag it as seen:
To insert a new message (that just has been sent) into the Sent mailbox and flag it as seen:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 107
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 108
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 109
$mailbox = $connection->getMailbox('Sent');
$mailbox = $connection->getMailbox('Sent');
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 110
$mailbox->addMessage($messageMIME, '\\Seen');
$mailbox->addMessage($messageMIME, '\\Seen');
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 111
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 112
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 113
Note that the message should be a string at MIME format (as described in the [RFC2045](https://tools.ietf.org/html/rfc2045)).
Note that the message should be a string at MIME format (as described in the [RFC2045](https://tools.ietf.org/html/rfc2045)).
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 114
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 115
#### Searching for Messages
#### Searching for Messages
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 116
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 117
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 118
use Ddeboer\Imap\SearchExpression;
use Ddeboer\Imap\SearchExpression;
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 119
use Ddeboer\Imap\Search\Email\To;
use Ddeboer\Imap\Search\Email\To;
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 120
use Ddeboer\Imap\Search\Text\Body;
use Ddeboer\Imap\Search\Text\Body;
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 121
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 122
$search = new SearchExpression();
$search = new SearchExpression();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 123
$search->addCondition(new To('[email protected]'));
$search->addCondition(new To('[email protected]'));
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 124
$search->addCondition(new Body('contents'));
$search->addCondition(new Body('contents'));
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 125
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 126
$messages = $mailbox->getMessages($search);
$messages = $mailbox->getMessages($search);
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 127
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 128
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 129
**WARNING** We are currently unable to have both spaces _and_ double-quotes
**WARNING** We are currently unable to have both spaces _and_ double-quotes
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 130
escaped together. Only spaces are currently escaped correctly.
escaped together. Only spaces are currently escaped correctly.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 131
You can use `Ddeboer\Imap\Search\RawExpression` to write the complete search
You can use `Ddeboer\Imap\Search\RawExpression` to write the complete search
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 132
condition by yourself.
condition by yourself.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 133
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 134
Messages can also be retrieved sorted as per [imap_sort](https://secure.php.net/manual/en/function.imap-sort.php)
Messages can also be retrieved sorted as per [imap_sort](https://secure.php.net/manual/en/function.imap-sort.php)
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 135
function:
function:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 136
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 137
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 138
$today = new DateTimeImmutable();
$today = new DateTimeImmutable();
andryyy
about 6 years ago
667bd48
[Web] Update libs
- Full commit hash
667bd4816321b2c853a25d25555c4440f482ab07- Author
- andryyy <[email protected]>
- Date
- about 6 years ago
- Selected line
- 139
$thirtyDaysAgo = $today->sub(new DateInterval('P30D'));
$thirtyDaysAgo = $today->sub(new DateInterval('P30D'));
andryyy
over 7 years ago
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 140
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 141
$messages = $mailbox->getMessages(
$messages = $mailbox->getMessages(
andryyy
about 6 years ago
667bd48
[Web] Update libs
- Full commit hash
667bd4816321b2c853a25d25555c4440f482ab07- Author
- andryyy <[email protected]>
- Date
- about 6 years ago
- Selected line
- 142
new Ddeboer\Imap\Search\Date\Since($thirtyDaysAgo),
new Ddeboer\Imap\Search\Date\Since($thirtyDaysAgo),
andryyy
over 7 years ago
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 143
\SORTDATE, // Sort criteria
\SORTDATE, // Sort criteria
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 144
true // Descending order
true // Descending order
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 145
);
);
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 146
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 147
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 148
#### Unknown search criterion: OR
#### Unknown search criterion: OR
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 149
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 150
Note that PHP imap library relies on the `c-client` library available at https://www.washington.edu/imap/
Note that PHP imap library relies on the `c-client` library available at https://www.washington.edu/imap/
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 151
which doesn't fully support some IMAP4 search criteria like `OR`. If you want those unsupported criteria,
which doesn't fully support some IMAP4 search criteria like `OR`. If you want those unsupported criteria,
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 152
you need to manually patch the latest version (`imap-2007f` of 23-Jul-2011 at the time of this commit)
you need to manually patch the latest version (`imap-2007f` of 23-Jul-2011 at the time of this commit)
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 153
and recompile PHP onto your patched `c-client` library.
and recompile PHP onto your patched `c-client` library.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 154
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 155
By the way most of the common search criteria are available and functioning, browse them in `./src/Search`.
By the way most of the common search criteria are available and functioning, browse them in `./src/Search`.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 156
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 157
References:
References:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 158
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 159
1. https://stackoverflow.com/questions/36356715/imap-search-unknown-search-criterion-or
1. https://stackoverflow.com/questions/36356715/imap-search-unknown-search-criterion-or
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 160
1. imap-2007f.tar.gz: `./src/c-client/mail.c` and `./docs/internal.txt`
1. imap-2007f.tar.gz: `./src/c-client/mail.c` and `./docs/internal.txt`
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 161
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 162
#### Message Properties and Operations
#### Message Properties and Operations
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 163
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 164
Get message number and unique [message id](https://en.wikipedia.org/wiki/Message-ID)
Get message number and unique [message id](https://en.wikipedia.org/wiki/Message-ID)
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 165
in the form <...>:
in the form <...>:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 166
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 167
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 168
$message->getNumber();
$message->getNumber();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 169
$message->getId();
$message->getId();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 170
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 171
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 172
Get other message properties:
Get other message properties:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 173
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 174
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 175
$message->getSubject();
$message->getSubject();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 176
$message->getFrom(); // Message\EmailAddress
$message->getFrom(); // Message\EmailAddress
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 177
$message->getTo(); // array of Message\EmailAddress
$message->getTo(); // array of Message\EmailAddress
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 178
$message->getDate(); // DateTimeImmutable
$message->getDate(); // DateTimeImmutable
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 179
$message->isAnswered();
$message->isAnswered();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 180
$message->isDeleted();
$message->isDeleted();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 181
$message->isDraft();
$message->isDraft();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 182
$message->isSeen();
$message->isSeen();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 183
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 184
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 185
Get message headers as a [\Ddeboer\Imap\Message\Headers](/src/Ddeboer/Imap/Message/Headers.php) object:
Get message headers as a [\Ddeboer\Imap\Message\Headers](/src/Ddeboer/Imap/Message/Headers.php) object:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 186
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 187
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 188
$message->getHeaders();
$message->getHeaders();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 189
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 190
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 191
Get message body as HTML or plain text:
Get message body as HTML or plain text:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 192
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 193
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 194
$message->getBodyHtml(); // Content of text/html part, if present
$message->getBodyHtml(); // Content of text/html part, if present
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 195
$message->getBodyText(); // Content of text/plain part, if present
$message->getBodyText(); // Content of text/plain part, if present
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 196
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 197
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 198
Reading the message body keeps the message as unseen.
Reading the message body keeps the message as unseen.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 199
If you want to mark the message as seen:
If you want to mark the message as seen:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 200
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 201
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 202
$message->markAsSeen();
$message->markAsSeen();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 203
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 204
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 205
Or you can set, or clear, any [flag](https://secure.php.net/manual/en/function.imap-setflag-full.php):
Or you can set, or clear, any [flag](https://secure.php.net/manual/en/function.imap-setflag-full.php):
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 206
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 207
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 208
$message->setFlag('\\Seen \\Flagged');
$message->setFlag('\\Seen \\Flagged');
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 209
$message->clearFlag('\\Flagged');
$message->clearFlag('\\Flagged');
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 210
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 211
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 212
Move a message to another mailbox:
Move a message to another mailbox:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 213
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 214
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 215
$mailbox = $connection->getMailbox('another-mailbox');
$mailbox = $connection->getMailbox('another-mailbox');
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 216
$message->move($mailbox);
$message->move($mailbox);
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 217
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 218
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 219
Deleting messages:
Deleting messages:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 220
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 221
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 222
$mailbox->getMessage(1)->delete();
$mailbox->getMessage(1)->delete();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 223
$mailbox->getMessage(2)->delete();
$mailbox->getMessage(2)->delete();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 224
$connection->expunge();
$connection->expunge();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 225
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 226
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 227
### Message Attachments
### Message Attachments
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 228
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 229
Get message attachments (both inline and attached) and iterate over them:
Get message attachments (both inline and attached) and iterate over them:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 230
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 231
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 232
$attachments = $message->getAttachments();
$attachments = $message->getAttachments();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 233
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 234
foreach ($attachments as $attachment) {
foreach ($attachments as $attachment) {
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 235
// $attachment is instance of \Ddeboer\Imap\Message\Attachment
// $attachment is instance of \Ddeboer\Imap\Message\Attachment
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 236
}
}
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 237
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 238
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 239
Download a message attachment to a local file:
Download a message attachment to a local file:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 240
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 241
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 242
// getDecodedContent() decodes the attachment’s contents automatically:
// getDecodedContent() decodes the attachment’s contents automatically:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 243
file_put_contents(
file_put_contents(
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 244
'/my/local/dir/' . $attachment->getFilename(),
'/my/local/dir/' . $attachment->getFilename(),
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 245
$attachment->getDecodedContent()
$attachment->getDecodedContent()
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 246
);
);
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 247
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 248
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 249
### Embedded Messages
### Embedded Messages
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 250
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 251
Check if attachment is embedded message and get it:
Check if attachment is embedded message and get it:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 252
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 253
```php
```php
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 254
$attachments = $message->getAttachments();
$attachments = $message->getAttachments();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 255
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 256
foreach ($attachments as $attachment) {
foreach ($attachments as $attachment) {
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 257
if ($attachment->isEmbeddedMessage()) {
if ($attachment->isEmbeddedMessage()) {
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 258
$embeddedMessage = $attachment->getEmbeddedMessage();
$embeddedMessage = $attachment->getEmbeddedMessage();
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 259
// $embeddedMessage is instance of \Ddeboer\Imap\Message\EmbeddedMessage
// $embeddedMessage is instance of \Ddeboer\Imap\Message\EmbeddedMessage
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 260
}
}
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 261
}
}
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 262
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 263
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 264
An EmbeddedMessage has the same API as a normal Message, apart from flags
An EmbeddedMessage has the same API as a normal Message, apart from flags
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 265
and operations like copy, move or delete.
and operations like copy, move or delete.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 266
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 267
### Timeouts
### Timeouts
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 268
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 269
The IMAP extension provides the [imap_timeout](https://secure.php.net/manual/en/function.imap-timeout.php)
The IMAP extension provides the [imap_timeout](https://secure.php.net/manual/en/function.imap-timeout.php)
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 270
function to adjust the timeout seconds for various operations.
function to adjust the timeout seconds for various operations.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 271
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 272
However the extension's implementation doesn't link the functionality to a
However the extension's implementation doesn't link the functionality to a
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 273
specific context or connection, instead they are global. So in order to not
specific context or connection, instead they are global. So in order to not
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 274
affect functionalities outside this library, we had to choose whether wrap
affect functionalities outside this library, we had to choose whether wrap
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 275
every `imap_*` call around an optional user-provided timeout or leave this
every `imap_*` call around an optional user-provided timeout or leave this
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 276
task to the user.
task to the user.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 277
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 278
Because of the heterogeneous world of IMAP servers and the high complexity
Because of the heterogeneous world of IMAP servers and the high complexity
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 279
burden cost for such a little gain of the former, we chose the latter.
burden cost for such a little gain of the former, we chose the latter.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 280
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 281
## Mock the library
## Mock the library
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 282
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 283
Mockability is granted by interfaces present for each API.
Mockability is granted by interfaces present for each API.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 284
Dig into [MockabilityTest](tests/MockabilityTest.php) for an example of a
Dig into [MockabilityTest](tests/MockabilityTest.php) for an example of a
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 285
mocked workflow.
mocked workflow.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 286
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 287
## Running the Tests
## Running the Tests
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 288
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 289
This library is functionally tested on [Travis CI](https://travis-ci.org/ddeboer/imap)
This library is functionally tested on [Travis CI](https://travis-ci.org/ddeboer/imap)
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 290
against a local Dovecot server.
against a local Dovecot server.
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 291
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 292
If you have your own IMAP (test) account, you can run the tests locally by
If you have your own IMAP (test) account, you can run the tests locally by
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 293
providing your IMAP credentials:
providing your IMAP credentials:
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 294
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 295
```bash
```bash
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 296
$ composer install
$ composer install
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 297
$ IMAP_SERVER_NAME="my.imap.server.com" IMAP_SERVER_PORT="60993" IMAP_USERNAME="johndoe" IMAP_PASSWORD="p4ssword" vendor/bin/phpunit
$ IMAP_SERVER_NAME="my.imap.server.com" IMAP_SERVER_PORT="60993" IMAP_USERNAME="johndoe" IMAP_PASSWORD="p4ssword" vendor/bin/phpunit
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 298
```
```
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 299
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 300
You can also copy `phpunit.xml.dist` file to a custom `phpunit.xml` and put
You can also copy `phpunit.xml.dist` file to a custom `phpunit.xml` and put
andryyy
over 5 years ago
19843cc
[Web] Fix mailbox editing when password is unchanged, fix adding new administrator (fixes #4054, fixes #4053); [Web] Update libs, add LDAP for future admin/domain admin authentication
- Full commit hash
19843cc786d20e4728ce9cc06caaa8069637f34b- Author
- andryyy <[email protected]>
- Date
- over 5 years ago
- Selected line
- 301
these environment variables in it.
these environment variables in it.
andryyy
over 7 years ago
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 302
same change
d82c2bf
[Web] Adjust mailbox format
- Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 303
**WARNING** Tests create new mailboxes without removing them.
**WARNING** Tests create new mailboxes without removing them.
andryyy
over 7 years ago
ad0df77
[Web] Minify css and js via PHP
- Full commit hash
ad0df77d2823e279dd17fe86d9efd594efc45599- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 304
same change
ad0df77
[Web] Minify css and js via PHP
- Full commit hash
ad0df77d2823e279dd17fe86d9efd594efc45599- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 305
```
```
same change
ad0df77
[Web] Minify css and js via PHP
- Full commit hash
ad0df77d2823e279dd17fe86d9efd594efc45599- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 306
$ docker-compose run tests
$ docker-compose run tests
same change
ad0df77
[Web] Minify css and js via PHP
- Full commit hash
ad0df77d2823e279dd17fe86d9efd594efc45599- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 307
```
```