[imp] Incorrect handling of '.' character in IMP 2.3

Ray Jackson Ray.Jackson@cern.ch
Thu, 31 May 2001 09:46:47 +0200


Thanks Chuck...

By the way - we are VERY impressed with this interface and have been 
running it now for the past 5 months using LDAP as our backend.  If you 
need any help regarding LDAP I have some decent knowledge in this area...

You might also be happy to hear that thanks to this webmail service we 
now offer using IMP at CERN (Birthplace of the web and all...) we've 
made it even harder for management to switch our mail service to MS 
Exchange (i.e. they're running out of 'reasons' for doing this switch :)

Cheers Chuck... keep up the good work!!!

Ray

--
Chuck Hagenbuch wrote:

> Quoting Ray Jackson <Ray.Jackson@cern.ch>:
> 
> 
>>Any quick fix out there by some SMTP wizards?
>>
> 
> This patch to PEAR's Net/SMTP.php fixes the problem:
> 
> Index: SMTP.php
> ===================================================================
> RCS file: /repository/php4/pear/Net/SMTP.php,v
> retrieving revision 1.2
> diff -u -r1.2 SMTP.php
> --- SMTP.php    2001/01/10 01:01:56     1.2
> +++ SMTP.php    2001/05/31 02:31:43
> @@ -200,7 +200,7 @@
>         function data($data) {
>                 $data = preg_replace("/([^\r]{1})\n/", "\\1\r\n", $data);
>                 $data = preg_replace("/\n\n/", "\n\r\n", $data);
> -               $data = preg_replace("/^(\..*)/", ".\\1", $data);
> +               $data = preg_replace("/\n\./", "\n..", $data);
> 
>                 if (PEAR::isError($this->socket->write("DATA\r\n"))) { return 
> new PEAR_Error('write to socket failed'); }
>                 if (!($this->validateResponse('354'))) { return new PEAR_Error
> ('354 not received'); }
> 
> 
> I've committed it to php CVS, also.
> 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck@horde.org>
> Black and white and grey, all the shades of truth.
> 
>