-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0572ac7
commit aab3386
Showing
17 changed files
with
67 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
@@ -16,6 +16,7 @@ | |
use Javanile\Imap2\Message; | ||
use Javanile\Imap2\Thread; | ||
use Javanile\Imap2\Polyfill; | ||
use Javanile\Imap2\Timeout; | ||
|
||
define('IMAP2_CHARSET', 'UTF-8'); | ||
define('IMAP2_RETROFIT_MODE', function_exists('imap_open')); | ||
|
@@ -324,7 +325,7 @@ function imap2_timeout($timeoutType, $timeout = -1) | |
imap_timeout($timeoutType, $timeout); | ||
} | ||
|
||
return Connection::timeout($timeoutType, $timeout); | ||
return Timeout::set($timeoutType, $timeout); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
@@ -222,14 +222,6 @@ public function selectMailbox() | |
} | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
public static function timeout($timeoutType, $timeout = -1) | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP Input package. | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the PHP IMAP2 package. | ||
* | ||
* (c) Francesco Bianco <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Javanile\Imap2; | ||
|
||
class Timeout | ||
{ | ||
protected static $timeout; | ||
|
||
public static function set($timeoutType, $timeout = -1) | ||
{ | ||
if ($timeout == -1) { | ||
return self::get($timeoutType); | ||
} | ||
|
||
self::$timeout[$timeoutType] = $timeout; | ||
|
||
return true; | ||
} | ||
|
||
public static function get($timeoutType) | ||
{ | ||
return self::$timeout[$timeoutType]; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/* | ||
imap_timeout | ||
imap_createmailbox | ||
imap_getmailboxes | ||
imap_mail_move | ||
imap_delete | ||
imap_fetchstructure | ||
imap_fetchbody | ||
imap_body | ||
imap_fetchmime | ||
imap_headerinfo | ||
imap_errors | ||
imap_last_error | ||
imap_num_msg | ||
imap_expunge | ||
imap_close | ||
*/ |