[imp] UNEXPECTED_DATA_AFTER_ADDRESS@.SYNTAX-ERROR and @UNKNOWN

Lars Hecking lhecking@nmrc.ucc.ie
Tue, 23 Oct 2001 14:25:10 +0100


Steeman Philip writes:
> Hello,
> can anybody help me, or perhaps my info can help you.
> 
> I use PHP4-CVS and horde 2.1.6 and imp 2.2.6
> 
> 1) problem with UNEXPECTED_...
> 
>    when I send a message to
>      - philip.steeman@kh.khbe.be    -> no problem
>      - philip.steeman <philip.steeman@kh.khbo.be>    -> UNEXPECTED error
> 
>    I looked in the files and in horde.lib in the function "mailfrom".
>    The rcpt-parameter contains:
>    philip.steeman\0<philip.steeman@kh.khbo.be>
>                  ^^^^(a real char(0))
>    When I make a dirty fix:
>       $rcpt = strtr($rcpt, "\0", " ");
>    The UNEXPECTED error disappears !!!

 You haven't fixed the problem, only the symptom.

 The problem is that the comment part of the header field must be quoted
 because it contains a period. If imp doesn't do that, it's a bug.

 "philip.steeman" <philip.steeman@kh.khbo.be>