in reply to Shorten email address

Some thoughts:

  1. Folding it into a single loop could be more efficient.
  2. What about addresses like supercoderhaxor@np.net ?

Replies are listed 'Best First'.
Re^2: Shorten email address
by redhotpenguin (Deacon) on Jun 10, 2005 at 06:55 UTC
    supercoderhaxor@np.net could be condensed to like 'superc...@np.net'. Thinking about this more it seems like I would want to introduce a constant length, and condense the address on either side of the @ sign to fit that length.
      Or maybe condense both sides by a number of characters... May be more pleasing to the eye super...@some...

      .:| If it can't be fixed .. Don't break it |:.

      Yes, one approach could be set a constant length and then shorten both sides: 1 char for the @, 1 for the dot, 2-4 for the ending, plus at least one char for each name and domain - that's minimum 8 chars. For 10 chars, you can set the length of the name/domain to 2 each, etc. Depends on your specific needs.