Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

Steeman Philip

unread,
Oct 23, 2001, 10:47:01 AM10/23/01
to
I think I found the error

With PHP4-CVS (phpinfo() says PHP 4.2.0-dev, and this little program:

<?php
$val = "philip steeman <philip....@kh.khbo.be>";
$rij = imap_rfc822_parse_adrlist($val, "xx.khbo.be");
$philip=fopen("/tmp/philip3.log", "a");
fputs($philip, "$val\n");
fclose($philip);
?>

The $val IS CHANGED after the call to imap_rfc822_parse_adrlist. There is
a null-char between "steeman" and "<".

When I test it with PHP 4.0.4pl1 everything is OK.


Philip

-----------------------------------------------------------------

On Tue, 23 Oct 2001, Steeman Philip wrote:

> 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....@kh.khbe.be -> no problem
> - philip.steeman <philip....@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....@kh.khbo.be>
> ^^^^(a real char(0))
> When I make a dirty fix:
> $rcpt = strtr($rcpt, "\0", " ");
> The UNEXPECTED error disappears !!!
>
> 2) problem with @UNKNOWN
>
> When I send a mail, my saved mail in the folder sent-mail shows
> @UNKNOWN and UNEXPECTED error.
> But when I look in the file sent-mail (with a editor), I again see the
> line:
> philip.steeman\0<philip....@kh.khbo.be>
> ^^^^(a real char(0))
>
> I think I can also solve this problem with that dirty fix, but I don't
> find the place to do it.
>
> I did not have this errors with PHP3, but when I changed to PHP4-CVS, I
> have this problem (same horde+php).
>
> Can anybody help me?
>
> Philip
>
> PS: I just started with IMP2.3, and I like it, but I have to test it
> first, before my users can use it instead of IMP2.2
>
>
> -----------------------------------------------------------------------------
> Philip Steeman tel: (+32)59 56 90 16
> Zeedijk 101 fax: (+32)59 56 90 01
> 8400 Oostende E-mail: philip....@kh.khbo.be
> Belgium
>
>

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


--
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-uns...@lists.horde.org

Chuck Hagenbuch

unread,
Oct 23, 2001, 12:29:33 PM10/23/01
to
Quoting Steeman Philip <philip....@kh.khbo.be>:

> I think I found the error
>
> With PHP4-CVS (phpinfo() says PHP 4.2.0-dev, and this little program:
>
> <?php
> $val = "philip steeman <philip....@kh.khbo.be>";
> $rij = imap_rfc822_parse_adrlist($val, "xx.khbo.be");
> $philip=fopen("/tmp/philip3.log", "a");
> fputs($philip, "$val\n");
> fclose($philip);
> ?>
>
> The $val IS CHANGED after the call to imap_rfc822_parse_adrlist. There is
> a null-char between "steeman" and "<".

Have you filed a bug report at bugs.php.net?

-chuck

--
Charles Hagenbuch, <ch...@horde.org>
"What was and what may be lie, like children whose faces we cannot see, in
the arms of silence. All we ever have is here, now." - Ursula K. Le Guin

Steeman Philip

unread,
Oct 23, 2001, 12:45:19 PM10/23/01
to

Chuck Hagenbuch wrote:
>
> Quoting Steeman Philip <philip....@kh.khbo.be>:
>
> > I think I found the error
> >
> > With PHP4-CVS (phpinfo() says PHP 4.2.0-dev, and this little program:
> >
> > <?php
> > $val = "philip steeman <philip....@kh.khbo.be>";
> > $rij = imap_rfc822_parse_adrlist($val, "xx.khbo.be");
> > $philip=fopen("/tmp/philip3.log", "a");
> > fputs($philip, "$val\n");
> > fclose($philip);
> > ?>
> >
> > The $val IS CHANGED after the call to imap_rfc822_parse_adrlist. There is
> > a null-char between "steeman" and "<".
>
> Have you filed a bug report at bugs.php.net?
>

Not yet, do I have to do this, or is someone else going to do it?

Philip

Chuck Hagenbuch

unread,
Oct 23, 2001, 1:07:20 PM10/23/01
to
Quoting Steeman Philip <philip....@kh.khbo.be>:

> Not yet, do I have to do this, or is someone else going to do it?

Generally, people who find bugs report them... you already have the script to
reproduce it, you know what's happening...

0 new messages