From 206188fdfb7a77c117c9dcbe12d6fb29e2660674 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 14 Sep 2004 20:43:03 +0000 Subject: [PATCH] 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 --- plugins/mail_fetch/setup.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 +?> -- 2.25.1