Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
Commits on Sep 18, 2012
Roger Llopart Pla Lumbendil Added a method to get the current mailbox and modified the visibility…
… of getServerString to be able to get more information about the server.
35e80ed
Roger Llopart Pla Lumbendil Added the method Message::moveToMailbox() in order to be able to move…
… a message to the given mailbox.
f114f49
Roger Llopart Pla Lumbendil Removed a test file which shouldn't have been staged. 70f414c
Roger Llopart Pla Lumbendil Added methods for checking if a mailbox exists and to create a mailbox. ebeacf6
Roger Llopart Pla Lumbendil Added more information to the README.md file. 5293e0e
Robert Hafner tedivm Merge pull request #7 from Wiakowe/updated-readme
Added more information to the README.md file.
3f5cd12
Commits on Oct 04, 2012
sherblot sherblot Fix imap_reopen 'mailbox not found' error
When this method was called and tried to reopen the imap connection, an
error was thrown because the second argument must be the complete
mailbox path and not only mailbox name
(http://lu.php.net/manual/fr/function.imap-reopen.php).
8f96aef
Robert Hafner tedivm Merge pull request #9 from sherblot/master
Fix imap_reopen 'mailbox not found' error
127a0a2
Robert Hafner tedivm Merge pull request #4 from Wiakowe/server-information-methods
Extra server information methods
7484ff1
Robert Hafner tedivm Merge pull request #6 from Wiakowe/create-mailbox-method
Added methods for checking if a mailbox exists and to create a mailbox.
17b57c5
Robert Hafner tedivm Merge pull request #3 from Wiakowe/message-move
Added method Message::moveToMailbox()
baaae55
Commits on Nov 08, 2012
Sebastian Grodzicki sgrodzicki Fixed PHPDoc & PSR Coding Standards 755d50a
Robert Hafner tedivm Merge pull request #10 from sgrodzicki/master
Fixed PHPDoc & PSR Coding Standards
b7c53f6
Commits on Nov 13, 2012
Clément Vasseur Fix notice undefined index charset 242ffb2
Robert Hafner tedivm Merge pull request #11 from cvasseur/fix-charset-notice
Fix notice undefined index charset
02642b3
Commits on Nov 26, 2012
Robert Hafner tedivm Updated gitignore f162197
Robert Hafner tedivm Updated license and keywords for composer.json 45995db
Robert Hafner tedivm Added a package.xml file for creating pear packages. e987a0f
Robert Hafner tedivm Changes from beta to alpha ffb7bf7
Robert Hafner tedivm Merge pull request #12 from tedivm/Cleanup
Cleanup for Packaged Release
4515dbc
Commits on Apr 29, 2013
Alexander asm89 Add "ext-imap" to composer.json
This library needs it. :)
6f7b15e
Robert Hafner tedivm Merge pull request #14 from asm89/patch-1
Add "ext-imap" to composer.json
33d6739
Commits on Jun 29, 2013
Abdul.Mohsen B. A. A. ArabCoders fixes Undefined property in message when using Message->getSubject() f65772f
Commits on Jul 01, 2013
Robert Hafner tedivm Merge pull request #16 from ArabCoders/master
fixes Undefined property in message when calling Message->getSubject()
5403184
Commits on Jul 10, 2013
Patrik Karisch patkar fixed behavior on setFlag() 5e62f87
Patrik Karisch patkar add unit tests for Server::setFlag()
add proper phpunit configuration
7972b0c
Commits on Jul 12, 2013
Robert Hafner tedivm Merge pull request #17 from abimus/fix/flags
Fix behavior on Server::setFlag()
12f147b
Commits on Jul 27, 2013
Cody Fletcher codyfletcher Added support for "bcc" as a type of processed object. 43263f9
Commits on Jul 28, 2013
Robert Hafner tedivm Merge pull request #19 from codyfletcher/master
Added support for "bcc" as a type of processed object.
0000c11
Commits on Aug 20, 2013
Christoph Rosse gries Fix moveToMailBox. Without the expunge call a copy of the file would …
…remain hidden on the original path.
14e14ab
Christoph Rosse gries CS fix. 99ff744
Robert Hafner tedivm Merge pull request #23 from gries/move_message_fix
Move message fix
6a8d11e
Commits on Aug 21, 2013
Sean Sabbage sgsabbage Added getStructure() function to the Attachment class. def9ee5
Commits on Sep 04, 2013
Robert Hafner tedivm Merge pull request #24 from sgsabbage/master
Added getStructure() function to the Attachment class.
938f8cf
Commits on Sep 19, 2013
Abdul.Mohsen B. A. A. ArabCoders fixed bug in getting reply_to addresses 916ebb1
Abdul.Mohsen B. A. A. ArabCoders preserve newlines when stripping HTML tags 0fc6487
Commits on Dec 01, 2013
Robert Hafner tedivm Merge pull request #27 from ArabCoders/master
fixed bug in getting reply_to addresses
691f8e0
Robert Hafner tedivm Initial Vagrant setup ca5aaa6
Commits on Dec 02, 2013
Robert Hafner tedivm Added postfix config file to Vagrant to help populate mailboxes efa2bd9
Robert Hafner tedivm Added test messages in
These messages are a dump of a "Maildir" account, managed by Dovecot.
2a1c46e
Robert Hafner tedivm Added "ResetMail.sh" to handle refreshing the test inboxes before and…
… between tests
63a358b
Robert Hafner tedivm Updated system hostname to tedivm.com 1351405
Robert Hafner tedivm Added ResetMail.sh to Provision.sh script, cleaned formatting. 5d30c7e
Robert Hafner tedivm Cleaned up VagrantFile formatting. 63ff9c9
Commits on Dec 05, 2013
Robert Hafner tedivm Shuffled testing scripts out of Vagrant folder and into their own space. e6eb65f
Robert Hafner tedivm Updated autoloader to support test cases, and bootstrapper to support…
… composer autoloader
bcf57ce
Robert Hafner tedivm Created environment setup wrapper script
This script makes setting up the environment for testing easier. It
detects that it's on travis and creates the appropriate setup right
there, or on personal machines uses vagrant. If vagrant is running is
skips the full setup and simply resets the mailbox for fast testing.
6e6d66e
Robert Hafner tedivm Updated the phpunit bootstrapper to initialize the environment. bdfb20f
Robert Hafner tedivm Added some useful output to the phpunit bootstrap file 554c22a
Robert Hafner tedivm Created initial working test suite
So far it just tests some flags (which it already did) and then tests
connecting to the imap server itself.

The Attachment and Message tests are just stubs right now and don't do
anything, but need those stubs to let the tests occur.
01f5ad0
Robert Hafner tedivm Added travis.ci file 623461a
Robert Hafner tedivm Updated SetupEnvironment to use TRAVIS_BUILD_DIR to identify paths 2adbb68
Robert Hafner tedivm Tell travis to run commands as root. 59dd786
Robert Hafner tedivm Attempting to see if updating apt-get will resolve build error 662ae64
Robert Hafner tedivm Attempting to deal with Dovecot/Travis issue by supplying an ssl cert b7b7d54
Robert Hafner tedivm Stopping/Starting Dovecot before moving ssl cert aab8106
Robert Hafner tedivm Making another attempt to deal with the ssl issue e847720
Commits on Dec 06, 2013
Robert Hafner tedivm Added new connection tests to the ServerTest class 3749e70
Robert Hafner tedivm Another attempt to make travis ci like me. cfc04ab
Robert Hafner tedivm Updated code coverage to only include Fetch code db1284d
Robert Hafner tedivm Continued fleshing out the Server tests 6d7f966
Robert Hafner tedivm Removed unfinished test 9c6a141
Robert Hafner tedivm Made the getServer function static f7436ee
Commits on Dec 09, 2013
Robert Hafner tedivm Updated test messages
During testing I realized that the transfer of messages to the test
server did not actually occur in the right order, which made some test
results counter intuitive. I've reshuffled the messages around so
things will make more sense.
10ec1b6
Robert Hafner tedivm Corrected mailbox name in test, as well as number of messages in main…
… inbox
6ad9945
Robert Hafner tedivm Added Message test structure, as well as a few initial tests. 83a8a89
Robert Hafner tedivm Added more tests for the Message class 68af0ad
Robert Hafner tedivm Killed first bug- Message class 'checkFlag' was returning wrong value…
…s if the message had been changed with setFlag

This was because the setFlag function was not setting the value stored
in the message object, just the one on the server.
f35a069
Robert Hafner tedivm Continued extended Message test suite 59d5b8f
Robert Hafner tedivm Added additional Attachment test fffa423
Commits on Dec 10, 2013
Robert Hafner tedivm Added test suite for the Attachment class 4a6811a
Commits on Dec 12, 2013
Robert Hafner tedivm Removed unneeded cert
The current build script regenerates this each time, so it's no longer
needed.
89efb38
Robert Hafner tedivm Added Message::getMessageBody tests, added better messages to existin…
…g assertions.
7af83a8
Commits on Dec 18, 2013
Robert Hafner tedivm Updated Message class to throw exception when passed nonexistant emai…
…l ID
0bbc02b
Robert Hafner tedivm Improved error handling in Server class, added getMessageByUid method eda6cc6
Robert Hafner tedivm Added tests for Expunge, getMailbox and setMailBox methods. 47bfb26
Robert Hafner tedivm Increased Dovecot's allowed connections for an individual IP address f0a4e29
Robert Hafner tedivm Added comments 0e38a10
Commits on Dec 19, 2013
Robert Hafner tedivm Rewrote "moveToMailbox" code to deal with some potential bugs
Basically if the server isn't in the same box as the message it causes
issues, so this switches to that box then back to where the server was.
25342a4
Robert Hafner tedivm Changed exception type 806572b
Robert Hafner tedivm Lots more tests! 7c9bc1d
Robert Hafner tedivm Merge pull request #30 from tedivm/testing
Complete Rework of the Test Suite
acfc1c0
Robert Hafner tedivm Updated readme cb15c2f
Robert Hafner tedivm Merge pull request #31 from tedivm/Marketing
Updated readme
9cc77d1
Robert Hafner tedivm Removed autoloader reference c61e6f4
Commits on Jan 14, 2014
Robert Hafner tedivm Update README.md 1ff3441
Commits on Jan 19, 2014
Robert Hafner tedivm Updated Fetch to use the DovecotTesting repository
Rather than ship with all of these files I’ve separated out the server
provisioning code from this repository.
550f3b6
Robert Hafner tedivm Updated vendor path used by travis for the SetupEnvironment script 4f2c266
Commits on Jan 20, 2014
Robert Hafner tedivm Pinned Fetch to a specific stable version of the test suite. 8b2a3c9
Robert Hafner tedivm Merge pull request #33 from tedivm/testing_update
Separate Mail Server Setup into Development Package
4432bd1
Robert Hafner tedivm Switching back to dev-master for testing 30b3871
Robert Hafner tedivm Telling composer to use any of the 1.x line of the Dovecot Test Package 223be18
Commits on Feb 27, 2014
Robert Hafner tedivm Added test to prevent fatal error in certain error conditions a2b41cd
Robert Hafner tedivm Added timezone and corrected path data
Adding a timezone prevents errors on misconfigured systems when
running, and the path correction automates the running of the dovecot
testing package between tests.
ef5f76d
Robert Hafner tedivm Updated to dovecottesting 1.2
This lets us simplify our test script by not having to care about
different ip addresses.
56dc838
Robert Hafner tedivm Added back distinct IP address for Travis and Vagrant ffeca29
Commits on Mar 11, 2014
Bjorn Post bjornpost Be more specific when fetching body sections, references #39 88f4381
Bjorn Post bjornpost Rewrite fix as it broke other tests. This fixes my issue and the brok…
…en tests.
7b42853
Commits on Mar 14, 2014
Robert Hafner tedivm Merge pull request #41 from tedivm/testing_dovecot
Dovecot Testing Package Updates
b48ca17
Robert Hafner tedivm Merge pull request #40 from bjornpost/fix-multipart-messagebody
In a multipart email messageBody() keeps headers
0bf95d7
Commits on Mar 28, 2014
Robert Hafner tedivm Locked in the tedivm/dovecottesting version 8650586
Commits on Apr 02, 2014
David Rainsford dangerous Allow the passing of connection parameters to imap_open()
Since version 5.3.2 of PHP, imap_open() has an optional 6th
parameter which allows you to set certain connection parameters.

Currently the only key is:

- DISABLE_AUTHENTICATOR - Disable authentication properties

see https://bugs.php.net/bug.php?id=33500

Example of use:

  $server = new Server('imap.example.com', 993);
  $server->setParam('DISABLE_AUTHENTICATOR', 'GSSAPI');

This gets rid of the following errors:
<br />
<b>Notice</b>:  Unknown: Unknown GSSAPI failure: An invalid name was
supplied (errflg=1) in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Notice</b>:  Unknown: GSSAPI mechanism status: Hostname cannot be
canonicalized (errflg=1) in <b>Unknown</b> on line <b>0</b><br />
b0d22fb
Commits on Apr 16, 2014
Robert Hafner tedivm Added code coverage and styling tests, refactored
Added runTests.sh to wrap up a bunch of test starting functionality.
Moved SetupEnvironment.sh out of Bootstrap.php and into the runTests.sh
file.

Added Coverall support for line coverage.

Added php-cs-fixer for code styling testing.
faaff07
Robert Hafner tedivm Formatting! PSR Compliance 1725eb2
Robert Hafner tedivm Added cover coverage badge 3c900ab
Robert Hafner tedivm Updated to latest version of the DovecotTesting Package 767a9f0
Robert Hafner tedivm Start testing hhvm on travis-ci
Lets see if it even has imap enabled :-)
b98ecaa
Robert Hafner tedivm Merge pull request #47 from tedivm/testing_updates
Testing Suite Updates
ec929fb
Robert Hafner tedivm Removed Pear package file
I'm to lazy to maintain pear when composer is a thing.
33451f1
Commits on Apr 20, 2014
Robert Hafner tedivm Use Composer provided phpunit for tests
This makes versioning pinning easier
9ad874d
Robert Hafner tedivm use bin/php-cs-fixer instead of bundle version 9d26773
Robert Hafner tedivm Added contributing file 2595457
Robert Hafner tedivm Merge pull request #49 from tedivm/more_testing
Use Composer provided phpunit for tests
4de4172
Robert Hafner tedivm Badges update 70b982b
Commits on Apr 28, 2014
Jesper Skovgaard Nielsen Implemented getting messages in an ordered fashion 7b04684
Commits on May 05, 2014
Robert Hafner tedivm updated "total downloads" badge 97597b1
Commits on May 07, 2014
Richard Shank iampersistent update Message::decode test 52930d5
Richard Shank iampersistent fix the behavior in Message:decode cab0aca
Robert Hafner tedivm Merge pull request #56 from iampersistent/message-decode
Message decode
bc5f325
Commits on May 19, 2014
Robert Hafner tedivm Merge pull request #51 from nulpunkt/get-orderd
Implemented getting messages in an ordered fashion
9dc46ce
Commits on May 20, 2014
Robert Hafner tedivm Updated dovecottesting to 1.2.3 59e1e41
Commits on May 21, 2014
Robert Hafner tedivm Updated homepage 5bcc4fd
Robert Hafner tedivm Updated links 7059e51
Commits on May 31, 2014
sbsyoel sbsyoel FIX: Message with no subject throw exception.
The subject of a message overview could not be set. Now we check if the property exists, if not we set subject to null.
be90bb9
Commits on Jun 02, 2014
Robert Hafner tedivm Merge pull request #60 from domibi/master
FIX: Message with no subject throw exception.
8e742ef
Commits on Jun 12, 2014
Alex Kavon alexkavon Check to see if message is already encoded in utf8
Adding requirement to if statement to check if message matches UTF-8 encoding via regex. This will prevent encoding errors when converting UTF-8 to UTF-8.
04b5a5e
Alex Kavon alexkavon Switch to mb_convert_encoding
Changing from iconv to mb_convert_encoding. $charset = 'UTF-8//TRANSLIT' is no longer needed. 'UTF-8' set as default and user may change value to whatever they wish :)
f08630c
Commits on Jun 13, 2014
Alex Kavon alexkavon Merge pull request #1 from alexkavon/patch-2
Patch 2
2fc04c3
Alex Kavon alexkavon Compromise between mb_convert_encoding and iconv 05ad71a
Alex Kavon alexkavon Second $charset should of been $charsetFlag b8b426c
Alex Kavon alexkavon whitespace b6874c4
Alex Kavon alexkavon picky travis, added else statement 9e49db2
Alex Kavon alexkavon Merge pull request #2 from alexkavon/patch-2
Patch 2
90f8f7c
Alex Kavon alexkavon bug fixes 1790a91
Alex Kavon alexkavon Updated message for $charsetFlag d4d7f36
Alex Kavon alexkavon bug fixes, message changes db0ef08
Alex Kavon alexkavon variable and message fix c6c80ac
Alex Kavon alexkavon head conflicts fix fa5ce2d
Robert Hafner tedivm Merge pull request #66 from alexkavon/patch-2
Check to see if message is already encoded in utf8
ca5a988
Commits on Jun 29, 2014
Stephen Lang skl Implement memory-efficient streaming save 6f09bdc
Robert Hafner tedivm Merge pull request #70 from skl/stream-save
Implement memory-efficient streaming save
aa5d960
Stephen Lang skl Fix incorrect variable name fb57c94
Robert Hafner tedivm Merge pull request #71 from skl/stream-save
Fix incorrect variable name
8647977
Commits on Jul 16, 2014
Tony Lemke rejinka Added a dependency 9334952
Commits on Jul 28, 2014
Bart Riepe Aeolun Give Message class constants to access the imap flags 6377be4
Robert Hafner tedivm Merge pull request #75 from Aeolun/master
Give Message class constants to access the imap flags
766db0a
Commits on Aug 05, 2014
Bernhard Breytenbach Xethron Bugfix: Set overview/header date field to null if not set af5161a
Commits on Aug 12, 2014
Bernhard Breytenbach Xethron Merge pull request #1 from Xethron/date-fix
Bugfix: Set overview/header date field to null if not set
5c717c9
Commits on Aug 15, 2014
Bernhard Breytenbach Xethron Fix typo in stream filter b0c372e
Bernhard Breytenbach Xethron Merge pull request #2 from Xethron/stream-filter-fix
Fix typo in stream filter
03720bd
vsychov vsychov fixed usage not-exists property 13c7fe2
vsychov vsychov add attachment emails support de108c0
Commits on Aug 25, 2014
Bernhard Breytenbach Xethron Code cleanup for Attatchment::saveAs() 6a58153
Bernhard Breytenbach Xethron Fix Attachment encoding problem when saving to disk
The case statement returned true for 0 == 'quoted-printable',
and base64 decoded all 7bit encoded attachments.
I have removed the string representations as an int is always
returned by PHP's imap functions for encoding type.
3e9400b
Bernhard Breytenbach Xethron Merge branch 'fix-attachment-encoding' b96c24a
Commits on Aug 26, 2014
Florent Viel luxifer Add: listMailbox function 8d29dde
Florent Viel luxifer Fix: launch list test before create test 5e78459
Florent Viel luxifer cs fixer e8843a1
Commits on Sep 17, 2014
Bernhard Breytenbach Xethron Catch exceptions from mb_convert_encoding and default to iconv 38dd385
Commits on Sep 24, 2014
Robert Hafner tedivm Merge pull request #73 from rejinka/master
Added a dependency
4de6c93
Robert Hafner tedivm Merge pull request #84 from luxifer/imap-list
Add: listMailbox function
94f2a5f
Robert Hafner tedivm Merge pull request #79 from vsychov/master
fixed usage not-exists property
b406e04
Robert Hafner tedivm Merge pull request #80 from vsychov/rfc822-messages
added attachment emails support
dea2cfb
Commits on Sep 25, 2014
Robert Hafner tedivm Merge pull request #78 from Xethron/stream-filter-fix
Fix typo in stream filter
c2f6943
Robert Hafner tedivm Merge pull request #82 from Xethron/fix-attachment-encoding
Fix attachment encoding bug introduced in 6f09bdc
04600ac
Robert Hafner tedivm Merge pull request #76 from Xethron/date-fix
Bugfix: Set overview/header date field to null if not set
c5ce777
Robert Hafner tedivm Updated phpunit 40e6427
Robert Hafner tedivm Updated php-cs-fixer e8ae094
Robert Hafner tedivm Merge pull request #89 from tedious/dependency-update
Dependency Update
d75a7e3
Bernhard Breytenbach Xethron Fix control_spaces PSR error 3e61c32
Robert Hafner tedivm Merge pull request #88 from Xethron/catch-mb_convert_encoding-exceptions
Catch mb convert encoding exceptions
501d5d0
Commits on Sep 27, 2014
Guillaume RODRIGUEZ guiguidu31300 UTF-8 Translation 989e77b
Commits on Oct 22, 2014
Gustavo Pilla gpilla Added check on Message::processAddressObject()
Added check if the mail addresses are really a email address on  Message::processAddressObject()

The error is when the address is for example: undisclosed-recipients
37203c6
Commits on Nov 01, 2014
Geoffray gwarnants using class constants in stead of raw strings 4027b05
Geoffray gwarnants allow setFlags() to set multiple flags as an array 56983f0
Geoffray gwarnants minor regex optimization to convert br to eol 928d37c
Commits on Dec 01, 2014
Aaron van Geffen AaronVanGeffen Make the sender address easily accessibly through Message::getAddress…
…es('sender').
cc86315
Commits on Dec 02, 2014
Robert Hafner tedivm Merge pull request #63 from AaronVanGeffen/master
Making the sender address easily accessibly through Message::getAddresses
933cf09
Commits on Dec 16, 2014
Florent Viel luxifer fix html fetch 6124cde
Florent Viel luxifer fix message decoding 378bfbd
Florent Viel luxifer Revert "fix message decoding"
This reverts commit 378bfbd.
bcdc85d
Commits on Dec 19, 2014
Robert Hafner tedivm Merge pull request #106 from luxifer/fix-message-decoding
Fix message decoding
08ff0ca
Commits on Jan 08, 2015
Robert Hafner tedivm Changed function names for cs consistency 741a9ea
Robert Hafner tedivm Merge pull request #109 from tedious/release-0.6.1
Changed function names for cs consistency
154a84f
Robert Hafner tedivm Added fast_finish and more php versions bc031ea
Robert Hafner tedivm Fixed allowed_failures formatting 7b5fa93
Robert Hafner tedivm Merge pull request #110 from tedious/travis_updates
Updating travis-ci to test more versions and enable fast_finish
3c5402c
Andrés eleazan Update composer version
Add to readme the correct composer version
ac1406f
Robert Hafner tedivm Merge pull request #111 from eleazan/patch-1
Update composer version
ba247b8
Commits on Feb 06, 2015
Robert Hafner tedivm Merge pull request #96 from gpilla/master
Added check on Message::processAddressObject()
4adad3f
Robert Hafner tedivm Merge pull request #44 from dangerous/master
Allow the passing of connection parameters to imap_open()
413fc24
Robert Hafner tedivm Merge pull request #98 from gwarnants/master
Allow setFlags() to set multiple flags as an array + minor code reviews
6f713cb
Robert Hafner tedivm Fixed braces (psr goodness) a258847
Robert Hafner tedivm Merge pull request #90 from guiguidu31300/master
UTF-8 Translation
b5b790e