X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=class%2Fdeliver%2FDeliver_IMAP.class.php;h=da61f3630b1962654ae1b1b8dea430743863f224;hb=9aaa9ae25065b41ecf3dbdf382c4f5dea7e84ffa;hp=026eb58cd5cb72262ff52f8e6af7889a92f8e21c;hpb=e1ee60fe48638eb837be029cc2ed56a8bb849d3a;p=squirrelmail.git diff --git a/class/deliver/Deliver_IMAP.class.php b/class/deliver/Deliver_IMAP.class.php index 026eb58c..da61f363 100644 --- a/class/deliver/Deliver_IMAP.class.php +++ b/class/deliver/Deliver_IMAP.class.php @@ -1,8 +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 */ } -?>