0

When inputting new users' email addresses and names into the Copy User interface, why not accept more formats? Right now it is very rigid: Email,FullName.

What I'm looking for is probably best described procedurally.

For each line:

  1. Look for '@' in the input string.
  2. Grab all characters around '@' until whitespace is encountered; perform any desired validation, and you have the user's email address.
  3. Remove the resulting email address from the string.
  4. Grab everything else, trim, and you have the user's full name.

This will allow entry in many different formats. I don't really see a downside.

I find myself pasting in lists of new users quite frequently, and the rigidness of the expected format gets in the way of my Getting Things Done.

flag

1 Answer

1

That sounds like a cool idea. Thanks for suggesting it!

Please vote up this question to show your support for this feature request!

The reason we currently use such a strict format is because it is predictable and doesn't require you, as the person entering users, to guess at how a given line will be processed. That's not to say that we can't make things smarter, it just means that we have to be careful to make it smarter without also making it more confusing/unpredictable.

For example, what if I'm pasting in email addresses that include display names? (e.g. "Bob Smith" <bob@example.com>)? When do we parse out commas/semicolons/pipes/etc that are being used to separate the full name from the email address? What if the name contains the same separator (e.g. "Smith, Bob")? What if the name contains an @ character (e.g. an account for a twitter user handle)? Yes, these are pathological cases, but that's the problem with providing "flexible" input formats: they are more flexible, but also potentially more error-prone.

link|flag
I see a lot of room for improvement with practically zero added risk. If the user pastes non-conforming strings into the current system, what happens? Just do that in all of the edge cases you cite. (Or special-case them and support them as time permits.) In my particular case, if FogBugz accepted whitespace in addition to a comma, and allowed the email and full name to be in either order, I'd be golden. My point is: You can open up a world of possibilities with little to no added risk and a very minor effort. Doesn't have to be a game changer. An incremental improvement is all I ask! – Grip May 21 2011 at 1:38

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.