X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=class%2Fdeliver%2FDeliver_IMAP.class.php;h=bfc3200a040cc82b5e92549830ac29be38221ce9;hb=3673a2deb33a13b35bd05b8693da08f1b64fbc42;hp=84f5d4b3f94e9e700799425bfcc5664afc7bb9c5;hpb=76911253eb850bacde3d86c8cb7b4af072e67ebe;p=squirrelmail.git diff --git a/class/deliver/Deliver_IMAP.class.php b/class/deliver/Deliver_IMAP.class.php index 84f5d4b3..bfc3200a 100644 --- a/class/deliver/Deliver_IMAP.class.php +++ b/class/deliver/Deliver_IMAP.class.php @@ -1,26 +1,82 @@ 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 */ +}