Removed body formatting when saving as a draft. This is OK with IMAP but
authorfallas <fallas@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Oct 2001 16:45:52 +0000 (16:45 +0000)
committerfallas <fallas@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Oct 2001 16:45:52 +0000 (16:45 +0000)
not with SMTP MTAs.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1660 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/draft_actions.php

index a8d145e71aae8c8fea113a10cb0ea078619e6970..80a49f8c6aa89f4b9782d1093454e922d1821d7a 100644 (file)
@@ -135,10 +135,6 @@ require_once ('../src/validate.php');
 
       $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 1);
 
-      $body = ereg_replace("\n\\.", "\n..", $body);
-      $body = ereg_replace("^\\.", "..", $body);
-      $body = ereg_replace("\n", "\r\n", $body);
-
       $fp = fopen("/dev/null", a);
       $headerlength = write822HeaderForDraft ($fp, $t, $c, $b, $subject, $more_headers);
       $bodylength = writeBody ($fp, $body);