Skip to content

Commit

Permalink
Merge branch 'merging'
Browse files Browse the repository at this point in the history
  • Loading branch information
bapcltd-marv committed Jan 20, 2020
2 parents bb6794c + cacc5e6 commit fd01ac1
Show file tree
Hide file tree
Showing 10 changed files with 267 additions and 64 deletions.
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -34,7 +34,8 @@
"ext-fileinfo": "*",
"ext-iconv": "*",
"ext-imap": "*",
"ext-mbstring": "*"
"ext-mbstring": "*",
"paragonie/hidden-string": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
Expand Down
288 changes: 241 additions & 47 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion examples/get_and_parse_all_emails_with_matching_subject.php
Expand Up @@ -8,13 +8,14 @@
* @author Sebastian Krätzig <info@ts3-tools.info>
*/
require_once __DIR__ . '/../vendor/autoload.php';
use ParagonIE\HiddenString\HiddenString;
use PhpImap\Exceptions\ConnectionException;
use PhpImap\Mailbox;

$mailbox = new Mailbox(
'{imap.gmail.com:993/imap/ssl}INBOX', // IMAP server and mailbox folder
'some@gmail.com', // Username for the before configured mailbox
'*********', // Password for the before configured username
new HiddenString('*********'), // Password for the before configured username
__DIR__, // Directory, where attachments will be saved (optional)
'US-ASCII' // Server encoding (optional)
);
Expand Down
Expand Up @@ -8,13 +8,14 @@
* @author Sebastian Krätzig <info@ts3-tools.info>
*/
require_once __DIR__ . '/../vendor/autoload.php';
use ParagonIE\HiddenString\HiddenString;
use PhpImap\Exceptions\ConnectionException;
use PhpImap\Mailbox;

$mailbox = new Mailbox(
'{imap.gmail.com:993/imap/ssl}INBOX', // IMAP server and mailbox folder
'some@gmail.com', // Username for the before configured mailbox
'*********', // Password for the before configured username
new HiddenString('*********'), // Password for the before configured username
null, // Directory, where attachments will be saved (optional)
'US-ASCII' // Server encoding (optional)
);
Expand All @@ -23,7 +24,7 @@
$mailbox = new Mailbox(
'{imap.gmail.com:993/imap/ssl}INBOX', // IMAP server and mailbox folder
'some@gmail.com', // Username for the before configured mailbox
'*********' // Password for the before configured username
new HiddenString('*********') // Password for the before configured username
);

// If you haven't defined the server encoding (charset) in 'new Mailbox()', you can change it any time
Expand Down
3 changes: 2 additions & 1 deletion examples/get_and_parse_unseen_emails.php
Expand Up @@ -8,13 +8,14 @@
* @author Sebastian Krätzig <info@ts3-tools.info>
*/
require_once __DIR__ . '/../vendor/autoload.php';
use ParagonIE\HiddenString\HiddenString;
use PhpImap\Exceptions\ConnectionException;
use PhpImap\Mailbox;

$mailbox = new Mailbox(
'{imap.gmail.com:993/imap/ssl}INBOX', // IMAP server and mailbox folder
'some@gmail.com', // Username for the before configured mailbox
'*********', // Password for the before configured username
new HiddenString('*********'), // Password for the before configured username
__DIR__, // Directory, where attachments will be saved (optional)
'US-ASCII' // Server encoding (optional)
);
Expand Down
Expand Up @@ -8,13 +8,14 @@
* @author Sebastian Krätzig <info@ts3-tools.info>
*/
require_once __DIR__ . '/../vendor/autoload.php';
use ParagonIE\HiddenString\HiddenString;
use PhpImap\Exceptions\ConnectionException;
use PhpImap\Mailbox;

$mailbox = new Mailbox(
'{imap.gmail.com:993/imap/ssl}INBOX', // IMAP server and mailbox folder
'some@gmail.com', // Username for the before configured mailbox
'*********' // Password for the before configured username
new HiddenString('*********') // Password for the before configured username
);

try {
Expand Down

0 comments on commit fd01ac1

Please sign in to comment.