From: pdontthink Date: Tue, 14 Sep 2004 20:43:03 +0000 (+0000) Subject: Squash IMAP errors when auto-fetching; fix was previously applied, but only to fetch.php X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=206188fdfb7a77c117c9dcbe12d6fb29e2660674;ds=sidebyside Squash IMAP errors when auto-fetching; fix was previously applied, but only to fetch.php git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8065 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/mail_fetch/setup.php b/plugins/mail_fetch/setup.php index e099ce1a..ec985446 100644 --- a/plugins/mail_fetch/setup.php +++ b/plugins/mail_fetch/setup.php @@ -181,13 +181,14 @@ } if ($mailfetch_subfolder=="") { - fputs($imap_stream, "A3$i APPEND INBOX {" . (strlen($Message) - 1) . "}\r\n"); + fputs($imap_stream, "A3$i APPEND INBOX {" . strlen($Message) . "}\r\n"); } else { - fputs($imap_stream, "A3$i APPEND $mailfetch_subfolder {" . (strlen($Message) - 1) . "}\r\n"); + fputs($imap_stream, "A3$i APPEND $mailfetch_subfolder {" . strlen($Message) . "}\r\n"); } $Line = fgets($imap_stream, 1024); if (substr($Line, 0, 1) == '+') { fputs($imap_stream, $Message); + fputs($imap_stream, "\r\n"); sqimap_read_data($imap_stream, "A3$i", false, $response, $message); if ($mailfetch_lmos != 'on') { @@ -236,4 +237,4 @@ ); } -?> \ No newline at end of file +?>