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

Steeman Philip philip.steeman@kh.khbo.be
Tue, 23 Oct 2001 15:47:26 +0200 (CEST)


On Tue, 23 Oct 2001, Lars Hecking wrote:

> 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
> > 

Sorry, a type; it has to be
           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))


Sorry, a typo; it has to be
       philip steeman\0<philip.steeman@kh.khbo.be>
             ^       ^^^

> >    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>
> 
> 
> -- 
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 

-----------------------------------------------------------------------------
Philip Steeman                    tel: (+32)59 56 90 16
Zeedijk 101                       fax: (+32)59 56 90 01
8400 Oostende                     E-mail: philip.steeman@kh.khbo.be
Belgium