lib/classes/Swift/FileSpool.php
public function recover($timeout = 900)
    {
        foreach (new DirectoryIterator($this->path) as $file) {
            $file = $file->getRealPath();

            if ('.message.sending' == substr($file, -16)) {
                $lockedtime = filectime($file);
                if ((time() - $lockedtime) > $timeout) {
                    rename($file, substr($file, 0, -8));
                }
            }
        }
    }
public function recover($timeout = 900)
    {
        foreach (new DirectoryIterator($this->path) as $file) {
            $file = $file->getRealPath();

            if ('.message.sending' == substr($file, -16)) {
                $lockedtime = filectime($file);
                if ((time() - $lockedtime) > $timeout) {
                    rename($file, substr($file, 0, -8));
                }
            }
        }
    }
public function recover ( $ timeout = 900 ) { foreach ( new DirectoryIterator ( $ this -> path ) as $ file ) { $ file = $ file -> getRealPath ( ) ; if ( '.message.sending' == substr ( $ file , - 16 ) ) { $ lockedtime = filectime ( $ file ) ; if ( ( time ( ) - $ lockedtime ) > $ timeout ) { rename ( $ file , substr ( $ file , 0 , - 8 ) ) ; } } } }
Execute a recovery if for any reason a process is sending for too long.

@param int $timeout in second Defaults is for very slow smtp responses
Execute a recovery if for any reason a process is sending for too long .