Summary | Fix import of multiple email addresses |
Queue | Turba |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | chuck (at) horde (dot) org |
Requester | thomas.jarosch (at) intra2net (dot) com |
Created | 06/11/2008 (6223 days ago) |
Due | |
Updated | 07/06/2008 (6198 days ago) |
Assigned | 07/02/2008 (6202 days ago) |
Resolved | 07/02/2008 (6202 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
http://cvs.horde.org/diff.php/turba/data.php?r1=1.105&r2=1.106&ty=u
problem with that, can you please create a ticket with example data,
and ideally a test?
I'm still in favor of applying the complete patch and then just change
the code to discard email addresses which don't validate.
A warning message about the invalid email address would be nice to have,
but is not a must.
State ⇒ Resolved
problem with that, can you please create a ticket with example data,
and ideally a test?
Thanks!
We should check the return code of $rfc822->validateMailbox() though
as this will lead to nasty PHP warnings if you throw an invalid
address at _getBareEmail().
State ⇒ Resolved
http://cvs.horde.org/diff.php/turba/data.php?r1=1.104&r2=1.105&ty=u
http://cvs.horde.org/diff.php/turba/docs/CHANGES?r1=1.430&r2=1.431&ty=u
Thought this made my point:
"But I'm okay with the change, if you want to you can modify the code to
output a notification including the failing address and skip it from
$results."
-> Do as you like, but with fix the import of multiple email addresses :-)
"personal" part of an email address.
it later.
the email field - that's half the point of this function...
part of an email address. Well, if it also was intended as validation,
then we should inform the user if something went wrong. IMHO it would
be ok to import the "bad" data and the user can correct it later. But
I'm okay with the change, if you want to you can modify the code to
output a notification including the failing address and skip it from
$results.
State ⇒ Feedback
the email field - that's half the point of this function...
New Attachment: turba-fix-import-multiple-email-addrs.patch
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Turba
Summary ⇒ Fix import of multiple email addresses
Type ⇒ Bug
Priority ⇒ 1. Low
Attached patch fixes the import of multiple email addresses.
Needs the patch from
bug #6896to work properly.I also added code to check the return value of $rfc822->validateMailbox()
to prevent data loss and warning messages like this:
[Tue Jun 10 14:20:58 2008] [error] [client 172.16.1.2] PHP Notice:
Trying to get property of non-object in
/usr/intranator/html/horde/turba/data.php on line 64, referer:
http://intradev.m.i2n/horde/turba/data.php
Cheers,
Thomas