On Mon, 09 Oct 2006 14:06:09 +1300 (NZDT)
Nick Rout <[EMAIL PROTECTED]> wrote:

> 
> Sorry, but to check whether Steve's solution works, i really have to
> 
> test it!
> 
> 
> 
> On 10/6/2006, "Steve Holdoway" <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> >On Sat, 07 Oct 2006 06:00:28 +1300
> 
> >Steve Holdoway <[EMAIL PROTECTED]> wrote:
> 
> >
> 
> >
> 
> >> I've stuck with roundcube, after a suggestion from a lister a while back. 
> Does what it says on the can.
> 
> >>
> 
> >> Ilohamail doesn't seem to be an active project, which is a bit of a worry.
>  Still, it's all php. Might have a look later.
> 
> >>
> 
> >> Steve
> 
> >>
> 
> >> Steve
> 
> >
> 
> >Might be worth modifying smtp.inc, line 306'ish ( version 0.9 )
> 
> >
> 
> >       //else, send message
> 
> >       $message = str_replace("\r\n", "\n", $message);
> 
> >       $message = str_replace("\n", "\r\n", $message);
> 
> >       $message = str_replace("\r\n.\r\n", "\r\n..\r\n", $message);
> 
> >       fputs($conn, $message);
> 
> >       fputs($conn, "\r\n.\r\n");
> 
> >
> 
> >to
> 
> >
> 
> >       //else, send message
> 
> >       $message = str_replace("\r\n", "\n", $message);
> 
> >       //$message = str_replace("\n", "\r\n", $message);
> 
> >       $message = str_replace("\r\n.\r\n", "\r\n..\r\n", $message);
> 
> >       fputs($conn, $message);
> 
> >       fputs($conn, "\r\n.\r\n");
> 
> >
> 
> >and see if this helps. Software was obviously developed on pc's ( fopen "rb"
>  ! ) which handles eols differently.
> 
> >
> 
> >I haven't tried this, but it's the work of 2 minutes to try.
> 
> >
> 
> >hth,
> 
> >
> 
> >Steve
> 
> >
> 

Nope! - it's sending \n\n so we could single them up...

       //else, send message
       $message = str_replace("\r\n", "\n", $message);
       $message = str_replace("\n\n", "\n", $message);
       $message = str_replace("\r\n.\r\n", "\r\n..\r\n", $message);
       fputs($conn, $message);
       fputs($conn, "\r\n.\r\n");

Reply via email to