swiftmailer/swiftmailer — pull request #187 by williambailey (2012-04-19 20:11:45+00:00)
Title: Alternative file spool implementation.

Provides a new Swift_SerializedFileSpool class as an alternative to the standard Swift_FileSpool class.

Main benefits is that it can use the igbinary_serialize and gzcompress functions if available to further reduce the size of spool files. It also provides a bit more control over the generated spool files.

Most of the changes could have been incorporated into the existing spool class but there are are a few slight differences in implementation. Having a new class with slightly different naming conventions can also ensure that even if the two spool classes use he same directory they won't walk over each other.