[imp] From/Reply To/etc address fix with specified name

Kris von Mach dev@swishmail.com
Thu, 15 Feb 2001 01:36:56 -0500


Well, it might be a PEAR RFC822.php problem, which is part of PHP, just do
the work around mentioned before and it should be fine for now.
if you installed php in default location, RFC822.php should be
/usr/local/lib/php/Mail/RFC822.php

just comment out the line and add a new one like this (around line 386 in
RFC822.php):

//        $parts = preg_split('/[ \\x09]+/', $phrase, 0,
PREG_SPLIT_NO_EMPTY);
        $parts = preg_split('/[ \\x09]+/', $phrase);

I am sure that soon a newer built of php or imp will include the fix for
this, but for now, use that.

__
Kris Mach.

----- Original Message -----
From: <paul@edsamail.com.ph>
To: <imp@lists.horde.org>
Sent: Thursday, February 15, 2001 12:13 AM
Subject: Re: [imp] From/Reply To/etc address fix with specified name


> I'm using the latest IMP CVS and I'm seeing problems in the From field of
the
> inbox when I send an email to myself.  For example, I'm user@horde.org and
send
> an email to myself.  When I get the mail, the From field in the Inbox says
'To:
> user@horde.org', but when I click on the message, the From field is
correct.
> Is this an IMP or PHP problem?
>
>
> Quoting Kris von Mach <dev@swishmail.com>:
>
> > Oh great :)
> >
> > I knew I wasn't REALLY that crazy :P
> >
> > __
> > Kris Mach
> >
> > ----- Original Message -----
> > From: "doug moore" <lordscarlet@idledreams.net>
> > To: <imp@lists.horde.org>
> > Sent: Wednesday, February 14, 2001 4:32 PM
> > Subject: [imp] From/Reply To/etc address fix with specified name
> >
> >
> > > OK, Chuck and I (ok, Chuck :) ) traced down the mailing problem when a
> > user has
> > > specified a name.  In RFC822.php the address is split using
> > >
> > > $parts = preg_split('/[ \\x09]+/', $phrase, 0, PREG_SPLIT_NO_EMPTY);
> > >
> > > This worked fine and dandy up until sometime at the beginning of the
> > month.
> > > The third field specifies the maximum number of indexes to return to
the
> > > array.  Normally, you would assume 0 would specifiy no limit.
Apparently
> > > instead it is now actually setting the limit to 0, therefore returning
> > "doug
> > > moore" as the first element of the array rather than "doug" as the
first
> > > element and "moore" as the second.  Chuck put in a temporary fix until
he
> > can
> > > figure out what is up with PHP.  For those interested, he just removed
> > the
> > last
> > > 2 arguments so that no limit is specified.
> > >
> > > doug.
> > >
> > > --
> > > IMP mailing list: http://horde.org/imp/
> > > Frequently Asked Questions: http://horde.org/faq/
> > > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> > >
> > >
> >
> >
> > --
> > IMP mailing list: http://horde.org/imp/
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> >
> >
> >
>
> --
> IMP mailing list: http://horde.org/imp/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>
>