X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=class%2Fdeliver%2FDeliver_IMAP.class.php;h=f437b4b7f16342dd338546730e62c5f40beeafbe;hp=7aec62ff3f306adc608fe0e0139d3ff90f1e5cf8;hb=8eeb846943970372b10d7721dd234fb31e29a93c;hpb=760c84a3b226747ea762935eecc91a990cf29f2d diff --git a/class/deliver/Deliver_IMAP.class.php b/class/deliver/Deliver_IMAP.class.php index 7aec62ff..f437b4b7 100644 --- a/class/deliver/Deliver_IMAP.class.php +++ b/class/deliver/Deliver_IMAP.class.php @@ -1,27 +1,85 @@ writeBody($message, 0, $final_length, $boundary); -?> + // now if we have a real live stream, send the message + // + if ($stream) { + sqimap_append ($stream, $folder, $final_length); + + $this->preWriteToStream($header); + $this->writeToStream($stream, $header); + $this->writeBody($message, $stream, $raw_length, $boundary); + + sqimap_append_done ($stream, $folder); + } + + } + + + /* to do: finishing the imap-class so the initStream function can call the + imap-class */ +}