Bug 50152 - invalid email address detection
Summary: invalid email address detection
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: SVN trunk (KDE 4)
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 95905 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-04 11:49 UTC by A T Somers
Modified: 2012-08-19 01:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A T Somers 2002-11-04 11:49:32 UTC
Version:            (using KDE KDE 3.0.3)
Installed from:    SuSE RPMs

I regularly respond to postings in newsgroups. Many people use a fake or deformed emailaddress in such postings. I don't allways see that. It would be nice if KMail featured some (simple) checking to see if the address looks like it might be fake. A check for "nospam" in the address would allready filter out most invalid addresses I think. A messagebox notifying me of a potential problem (possibly with a line to edit the address) would be really helpfull.
Comment 1 Alexey Arzamasov 2003-08-19 12:00:07 UTC
How do you think should we replace the common user <at> some.host to 
user@some.host automatically?  
Comment 2 A T Somers 2003-08-19 12:07:52 UTC
Subject: Re:  invalid email address detection

No, I don't think we should replace it automaticly, but we could at least try 
to detect it. The best way would, IMHO, be to allow a (list of) regexps wich 
can be modified by the user against which the to, cc and bcc adresses are 
tested. It would also be nice if the user can respond with a "don't ask me 
about this address again". I think it is too dangerous to automaticly replace 
characters in an email address.

Andr
Comment 3 Alexey Arzamasov 2003-08-19 12:27:58 UTC
Subject: Re:

> 12:07 ------- Subject: Re:  invalid email address detection
>
> No, I don't think we should replace it automaticly, but we could at least
> try to detect it. The best way would, IMHO, be to allow a (list of) regexps
> wich can be modified by the user against which the to, cc and bcc adresses
> are tested. It would also be nice if the user can respond with a "don't ask
> me about this address again". I think it is too dangerous to automaticly
> replace characters in an email address.

So, we'll do this:
  - Check if To: field contains a valid (RFC-based regexp) email address
      - if not, try to detect it via user-defined substitutions a la
        "user<at>host" to "user@host"
         - if any of this matches, ask user if he/she want KMail to do
           the substitution
         - if no any of regexps matches, warn the user

Comments?


Comment 4 A T Somers 2003-08-19 12:41:39 UTC
Subject: Re:  invalid email address detection

Yes, I have comments:
- I think we should NOT have kmail replace any character in the emailadress. 
Instead, we should leave that to the user. Automaticly changing is too 
dangerous IMHO, risking sending possibly confidential data to the wrong 
adres. That leads to a security problem IMO.
- a valid rfc-adress is no guarantee that the adres itself if valid. Considder 
this: a.t._nospam_somers@student.utwente.nl is perfectly valid according to 
the RFC, yet it is clearly not valid to send to. 
- We should check each address in the to, cc and bcc fields induvidually, I 
think. 

This would be, IMO, the best way:
-get the addresses from the To, CC and BCC fields
-check each adress against a set of regexps to detect substitutions like 
"user<at>host<dot>com" and also insertions like "a.t._nospam_somers@..."
  -for each address that matches, display a dialog that asks for confirmation
   on this address and offers the posibility to modify the address in
   question.
 
As said before, it would be nice if a list of OK-adresses could be compiled 
(maybe by checking if it's in the users addressbook?), so the user isn't 
bugged over and over again for the same (valid) addres (I could register a 
valid address like _nospam_@myhost.com).


Comment 5 Matt Douhan 2005-07-20 14:12:12 UTC
An email address validator exists in KDE since KDE 3.4.1 so that part is resolved, as for the replacing/parsing of addresses I am unsure if this is a good idea, 

What do others think ?
Comment 6 A T Somers 2006-10-28 19:34:38 UTC
THe email address validator doesn't catch insertions like _no_spam_ in otherwise valid addresses, so it doesn't solve the original request. 
Comment 7 Thomas McGuire 2007-12-19 18:35:06 UTC
*** Bug 95905 has been marked as a duplicate of this bug. ***
Comment 8 Myriam Schweingruber 2012-08-18 09:02:08 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 9 Luigi Toscano 2012-08-19 01:07:40 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.