Update lib/classes/Swift/MemorySpool.php
Implemented Swift_Message cloning + test
corrected typo
Merge branch 'master' of https://github.com/bmurashin/swiftmailer into message_cloning
Cloning fixed
Added Message-Id regeneration
#444 fix is wrong

It is iconv that transpose arguments, not mb_convert_encoding.
_convertString encodes $string charset when Swift_Mime_MimePart charset ($this->getCharset()) is not utf-8. So mb_convert_encoding and iconv must convert from utf-8 to $charset.
fix to-other cc-self issue when using gmail smtp

Remove extra transaction when sending to & cc since a separate transaction only necessary for bcc.
This fixes an issue where sending to another address and CC-ing yourself would cause the message to NOT go into your inbox when using Google's SMTP.  This seems to be a bug in Google's smtp, but doing a single transaction for both to and cc fixes the issue (not to mention making it more efficient)
Bugfix, message might change when in the memory spool
Added comment
Merge branch 'message_cloning' of https://github.com/xdecock/swiftmailer into xdecock

Conflicts:
	lib/classes/Swift/Mime/SimpleHeaderFactory.php
Using clone
bug #526 fix to-other cc-self issue when using gmail smtp (baohx2000)

This PR was merged into the 5.2-dev branch.

Discussion
----------

fix to-other cc-self issue when using gmail smtp

Remove extra transaction when sending to & cc since a separate transaction only necessary for bcc.
This fixes an issue where sending to another address and CC-ing yourself would cause the message to NOT go into your inbox when using Google's SMTP.  This seems to be a bug in Google's smtp, but doing a single transaction for both to and cc fixes the issue (not to mention making it more efficient)

Commits
-------

4498fed fix to-other cc-self issue when using gmail smtp
updated CHANGELOG
Fixes #479
bug #525 Fixes #479 (shabbyrobe)

This PR was squashed before being merged into the 5.2-dev branch (closes #525).

Discussion
----------

Fixes #479

Perhaps `getTo()` should just return an empty array instead of `null`, but this fix has fewer potential ramifications.

Commits
-------

d8b2441 Fixes #479
updated CHANGELOG
Added clone function
feature #519 [MemorySpool] Cloning messages to the queue (bmurashin, xdecock, Nyholm)

This PR was merged into the 5.2-dev branch.

Discussion
----------

[MemorySpool] Cloning messages to the queue

This PR is a merge of #278 and #518. With help from @xdecock we got the cloning to work.

I need some advice about the failing test. I suspect this is a false positive. Am I correct when saying that properties of the message does not need to be cloned? If not, the test is valid and we (or I ?) need to do some more changes to this PR.

Commits
-------

65dcc5e Added clone function
d78c9a4 Using clone
0ddc383 Merge branch 'message_cloning' of https://github.com/xdecock/swiftmailer into xdecock
d3bcae1 Added comment
9d52c5f Bugfix, message might change when in the memory spool
1d14c0b Added Message-Id regeneration
5a89730 Cloning fixed
1806788 Merge branch 'master' of https://github.com/bmurashin/swiftmailer into message_cloning
03508cc corrected typo
b6eefd3 Implemented Swift_Message cloning + test
e764fe5 Update lib/classes/Swift/MemorySpool.php
fixed CS