[imp] Incorrect handling of '.' character in IMP 2.3
Lars Hecking
lhecking@nmrc.ucc.ie
Wed, 30 May 2001 10:20:18 +0100
Ray Jackson writes:
> Hello,
>
> I spotted a bug with IMP 2.3.7-cvs - If you compose a message and
> include a line containing a single '.' e.g.
>
> .
>
> Then anything below that dot is not sent in the message and we see
> errors in our sendmail logs. Now, of course the reason is that '.' is
> used in SMTP to close a connection - so obviously the '.' is not being
> escaped properly as normal mail clients do to avoid SMTP interpreting
> the '.' in the body as a Close Connection instruction.
>
> Is this a PHP problem or rather an IMP specific problem?
How does 2.3.x send mail? If it uses injection via the sendmail program,
it must be called with the -i option. If it uses smtp directly (through
php or whatever), the smtp client must implement the transparency procedure
outlined in RFC 2821 section 4.5.2.