Don't eat some characters when non-ascii characters are directely besides an e-mail address. Somehow isalnum also returns true for non-us-ascii characters. -      for (i=0; pos >= startofstring && *pos +      for (i=0; pos >= startofstring && *pos > 0              && (isalnum(*pos) [...] -      for (i=0; *pos && (isalnum(*pos)||*pos=='@'||*pos=='.'|| +      for (i=0; *pos > 0 && (isalnum(*pos)||*pos=='@'||*pos=='.'||
Don't eat some characters when non-ascii characters are directely besides an
e-mail address.
Somehow isalnum also returns true for non-us-ascii characters.
-      for (i=0; pos >= startofstring && *pos
+      for (i=0; pos >= startofstring && *pos > 0
             && (isalnum(*pos)
[...]
-      for (i=0; *pos && (isalnum(*pos)||*pos=='@'||*pos=='.'||
+      for (i=0; *pos > 0 && (isalnum(*pos)||*pos=='@'||*pos=='.'||

svn path=/trunk/kdenetwork/kmail/; revision=104876

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi