Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
将swiftmailer的composer同步
Browse files Browse the repository at this point in the history
  • Loading branch information
yuan1994 committed Dec 10, 2016
1 parent 4eea7a5 commit 0d7235c
Show file tree
Hide file tree
Showing 345 changed files with 47,491 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static function getLoader()
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit42f1a2b06c32df0543aaa7dd0a10f07a', 'loadClassLoader'));

$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';

Expand Down
9 changes: 9 additions & 0 deletions vendor/swiftmailer/swiftmailer/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.crt -crlf
*.key -crlf
*.srl -crlf
*.pub -crlf
*.priv -crlf
*.txt -crlf

# ignore /notes in the git-generated distributed .zip archive
/notes export-ignore
4 changes: 4 additions & 0 deletions vendor/swiftmailer/swiftmailer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/tests/acceptance.conf.php
/tests/smoke.conf.php
/build/*
/vendor/
27 changes: 27 additions & 0 deletions vendor/swiftmailer/swiftmailer/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: php

sudo: false

before_script:
- cp tests/acceptance.conf.php.default tests/acceptance.conf.php
- cp tests/smoke.conf.php.default tests/smoke.conf.php
- composer self-update
- composer update --no-interaction --prefer-source
- gem install mime-types -v 2.99.1
- gem install mailcatcher
- mailcatcher --smtp-port 4456

script:
- phpunit --verbose

matrix:
include:
- php: 5.3
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: hhvm
allow_failures:
- php: hhvm
fast_finish: true
235 changes: 235 additions & 0 deletions vendor/swiftmailer/swiftmailer/CHANGES
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
Changelog
=========

5.4.4 (2016-11-23)
------------------

* reverted escaping command-line args to mail (PHP mail() function already does it)

5.4.3 (2016-07-08)
------------------

* fixed SimpleHeaderSet::has()/get() when the 0 index is removed
* removed the need to have mcrypt installed
* fixed broken MIME header encoding with quotes/colons and non-ascii chars
* allowed mail transport send for messages without To header
* fixed PHP 7 support

5.4.2 (2016-05-01)
------------------

* fixed support for IPv6 sockets
* added auto-retry when sending messages from the memory spool
* fixed consecutive read calls in Swift_ByteStream_FileByteStream
* added support for iso-8859-15 encoding
* fixed PHP mail extra params on missing reversePath
* added methods to set custom stream context options
* fixed charset changes in QpContentEncoderProxy
* added return-path header to the ignoredHeaders list of DKIMSigner
* fixed crlf for subject using mail
* fixed add soft line break only when necessary
* fixed escaping command-line args to mail

5.4.1 (2015-06-06)
------------------

* made Swiftmailer exceptions confirm to PHP base exception constructor signature
* fixed MAIL FROM & RCPT TO headers to be RFC compliant

5.4.0 (2015-03-14)
------------------

* added the possibility to add extra certs to PKCS#7 signature
* fix base64 encoding with streams
* added a new RESULT_SPOOLED status for SpoolTransport
* fixed getBody() on attachments when called more than once
* removed dots from generated filenames in filespool

5.3.1 (2014-12-05)
------------------

* fixed cloning of messages with attachments

5.3.0 (2014-10-04)
------------------

* fixed cloning when using signers
* reverted removal of Swift_Encoding
* drop support for PHP 5.2.x

5.2.2 (2014-09-20)
------------------

* fixed Japanese support
* fixed the memory spool when the message changes when in the pool
* added support for cloning messages
* fixed PHP warning in the redirect plugin
* changed the way to and cc-ed email are sent to only use one transaction

5.2.1 (2014-06-13)
------------------

* SECURITY FIX: fixed CLI escaping when using sendmail as a transport

Prior to 5.2.1, the sendmail transport (Swift_Transport_SendmailTransport)
was vulnerable to an arbitrary shell execution if the "From" header came
from a non-trusted source and no "Return-Path" is configured.

* fixed parameter in DKIMSigner
* fixed compatibility with PHP < 5.4

5.2.0 (2014-05-08)
------------------

* fixed Swift_ByteStream_FileByteStream::read() to match to the specification
* fixed from-charset and to-charset arguments in mbstring_convert_encoding() usages
* fixed infinite loop in StreamBuffer
* fixed NullTransport to return the number of ignored emails instead of 0
* Use phpunit and mockery for unit testing (realityking)

5.1.0 (2014-03-18)
------------------

* fixed data writing to stream when sending large messages
* added support for libopendkim (https://github.com/xdecock/php-opendkim)
* merged SignedMessage and Message
* added Gmail XOAuth2 authentication
* updated the list of known mime types
* added NTLM authentication

5.0.3 (2013-12-03)
------------------

* fixed double-dot bug
* fixed DKIM signer

5.0.2 (2013-08-30)
------------------

* handled correct exception type while reading IoBuffer output

5.0.1 (2013-06-17)
------------------

* changed the spool to only start the transport when a mail has to be sent
* fixed compatibility with PHP 5.2
* fixed LICENSE file

5.0.0 (2013-04-30)
------------------

* changed the license from LGPL to MIT

4.3.1 (2013-04-11)
------------------

* removed usage of the native QP encoder when the charset is not UTF-8
* fixed usage of uniqid to avoid collisions
* made a performance improvement when tokenizing large headers
* fixed usage of the PHP native QP encoder on PHP 5.4.7+

4.3.0 (2013-01-08)
------------------

* made the temporary directory configurable via the TMPDIR env variable
* added S/MIME signer and encryption support

4.2.2 (2012-10-25)
------------------

* added the possibility to throttle messages per second in ThrottlerPlugin (mostly for Amazon SES)
* switched mime.qpcontentencoder to automatically use the PHP native encoder on PHP 5.4.7+
* allowed specifying a whitelist with regular expressions in RedirectingPlugin

4.2.1 (2012-07-13)
------------------

* changed the coding standards to PSR-1/2
* fixed issue with autoloading
* added NativeQpContentEncoder to enhance performance (for PHP 5.3+)

4.2.0 (2012-06-29)
------------------

* added documentation about how to use the Japanese support introduced in 4.1.8
* added a way to override the default configuration in a lazy way
* changed the PEAR init script to lazy-load the initialization
* fixed a bug when calling Swift_Preferences before anything else (regression introduced in 4.1.8)

4.1.8 (2012-06-17)
------------------

* added Japanese iso-2022-jp support
* changed the init script to lazy-load the initialization
* fixed docblocks (@id) which caused some problems with libraries parsing the dobclocks
* fixed Swift_Mime_Headers_IdentificationHeader::setId() when passed an array of ids
* fixed encoding of email addresses in headers
* added replacements setter to the Decorator plugin

4.1.7 (2012-04-26)
------------------

* fixed QpEncoder safeMapShareId property

4.1.6 (2012-03-23)
------------------

* reduced the size of serialized Messages

4.1.5 (2012-01-04)
------------------

* enforced Swift_Spool::queueMessage() to return a Boolean
* made an optimization to the memory spool: start the transport only when required
* prevented stream_socket_client() from generating an error and throw a Swift_TransportException instead
* fixed a PHP warning when calling to mail() when safe_mode is off
* many doc tweaks

4.1.4 (2011-12-16)
------------------

* added a memory spool (Swift_MemorySpool)
* fixed too many opened files when sending emails with attachments

4.1.3 (2011-10-27)
------------------

* added STARTTLS support
* added missing @return tags on fluent methods
* added a MessageLogger plugin that logs all sent messages
* added composer.json

4.1.2 (2011-09-13)
------------------

* fixed wrong detection of magic_quotes_runtime
* fixed fatal errors when no To or Subject header has been set
* fixed charset on parameter header continuations
* added documentation about how to install Swiftmailer from the PEAR channel
* fixed various typos and markup problem in the documentation
* fixed warning when cache directory does not exist
* fixed "slashes are escaped" bug
* changed require_once() to require() in autoload

4.1.1 (2011-07-04)
------------------

* added missing file in PEAR package

4.1.0 (2011-06-30)
------------------

* documentation has been converted to ReST

4.1.0 RC1 (2011-06-17)
----------------------

New features:

* changed the Decorator Plugin to allow replacements in all headers
* added Swift_Mime_Grammar and Swift_Validate to validate an email address
* modified the autoloader to lazy-initialize Swiftmailer
* removed Swift_Mailer::batchSend()
* added NullTransport
* added new plugins: RedirectingPlugin and ImpersonatePlugin
* added a way to send messages asynchronously (Spool)
19 changes: 19 additions & 0 deletions vendor/swiftmailer/swiftmailer/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2013-2016 Fabien Potencier

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
15 changes: 15 additions & 0 deletions vendor/swiftmailer/swiftmailer/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Swift Mailer
------------

Swift Mailer is a component based mailing solution for PHP 5.
It is released under the MIT license.

Homepage: http://swiftmailer.org
Documentation: http://swiftmailer.org/docs
Bugs: https://github.com/swiftmailer/swiftmailer/issues
Repository: https://github.com/swiftmailer/swiftmailer

Swift Mailer is highly object-oriented by design and lends itself
to use in complex web application with a great deal of flexibility.

For full details on usage, see the documentation.
1 change: 1 addition & 0 deletions vendor/swiftmailer/swiftmailer/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Swift-5.4.4
36 changes: 36 additions & 0 deletions vendor/swiftmailer/swiftmailer/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "swiftmailer/swiftmailer",
"type": "library",
"description": "Swiftmailer, free feature-rich PHP mailer",
"keywords": ["mail","mailer","email"],
"homepage": "http://swiftmailer.org",
"license": "MIT",
"authors": [
{
"name": "Chris Corbyn"
},
{
"name": "Fabien Potencier",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"mockery/mockery": "~0.9.1"
},
"autoload": {
"files": ["lib/swift_required.php"]
},
"autoload-dev": {
"psr-0": {
"Swift_": "tests/unit"
}
},
"extra": {
"branch-alias": {
"dev-master": "5.4-dev"
}
}
}
Loading

0 comments on commit 0d7235c

Please sign in to comment.